From 9918e5d4f6fbc8fe63d0395170a2daef2484d17a Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 17 Aug 2012 02:30:57 +0200 Subject: [PATCH] windows: make junctions work again Closes GH-3879 --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index d53c360..f29524c 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -549,7 +549,7 @@ fs.symlink = function(destination, path, type_, callback) { var type = (typeof type_ === 'string' ? type_ : null); var callback = makeCallback(arguments[arguments.length - 1]); - binding.symlink(preprocessSymlinkDestination(destination), + binding.symlink(preprocessSymlinkDestination(destination, type), pathModule._makeLong(path), type, callback); @@ -558,7 +558,7 @@ fs.symlink = function(destination, path, type_, callback) { fs.symlinkSync = function(destination, path, type) { type = (typeof type === 'string' ? type : null); - return binding.symlink(preprocessSymlinkDestination(destination), + return binding.symlink(preprocessSymlinkDestination(destination, type), pathModule._makeLong(path), type); }; -- 2.7.4