windows: make junctions work again

Closes GH-3879
This commit is contained in:
Bert Belder 2012-08-17 02:30:57 +02:00
parent 9263213d8e
commit 9918e5d4f6

View File

@ -549,7 +549,7 @@ fs.symlink = function(destination, path, type_, callback) {
var type = (typeof type_ === 'string' ? type_ : null); var type = (typeof type_ === 'string' ? type_ : null);
var callback = makeCallback(arguments[arguments.length - 1]); var callback = makeCallback(arguments[arguments.length - 1]);
binding.symlink(preprocessSymlinkDestination(destination), binding.symlink(preprocessSymlinkDestination(destination, type),
pathModule._makeLong(path), pathModule._makeLong(path),
type, type,
callback); callback);
@ -558,7 +558,7 @@ fs.symlink = function(destination, path, type_, callback) {
fs.symlinkSync = function(destination, path, type) { fs.symlinkSync = function(destination, path, type) {
type = (typeof type === 'string' ? type : null); type = (typeof type === 'string' ? type : null);
return binding.symlink(preprocessSymlinkDestination(destination), return binding.symlink(preprocessSymlinkDestination(destination, type),
pathModule._makeLong(path), pathModule._makeLong(path),
type); type);
}; };