module: use UNC paths when loading native addons
authorJustin Chase <justin@evolvelabs.com>
Sat, 19 Sep 2015 22:03:32 +0000 (17:03 -0500)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 03:39:15 +0000 (20:39 -0700)
commit74f443583c4eba1bdf1bbb4df3426b46b58e5ad4
tree31c14cc6802d044a1d628e88478e460d8f1e8ae4
parent46876d519cfd4f4980e4956e8286ce48c9c220a5
module: use UNC paths when loading native addons

When using require to load a native addon the path must be converted
into a long path, otherwise the addon will fail to be loaded on
windows if the path is longer than 260 characters.

PR-URL: https://github.com/nodejs/node/pull/2965
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <inglor@gmail.com>
lib/module.js
test/addons/load-long-path/binding.cc [new file with mode: 0644]
test/addons/load-long-path/binding.gyp [new file with mode: 0644]
test/addons/load-long-path/test.js [new file with mode: 0644]