aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2013-09-15 13:05:25 +0200
committerThijs Schreijer <thijs@thijsschreijer.nl>2013-09-15 13:05:25 +0200
commitf06cddb131897e535131ee230ef9916ae453c8a7 (patch)
tree2ab2eac30e5f23e1b520029ed61fc732ad8effe1
parenta5a94c617eee3247f0346e452dbf09921e2f1b5f (diff)
downloadluarocks-f06cddb131897e535131ee230ef9916ae453c8a7.tar.gz
luarocks-f06cddb131897e535131ee230ef9916ae453c8a7.tar.bz2
luarocks-f06cddb131897e535131ee230ef9916ae453c8a7.zip
normalize directory before creating a directory path. Fixes #140
-rw-r--r--src/luarocks/fs/win32/tools.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua
index 7bb69d9e..64ff910c 100644
--- a/src/luarocks/fs/win32/tools.lua
+++ b/src/luarocks/fs/win32/tools.lua
@@ -107,6 +107,7 @@ end
107-- @return boolean: true on success, false on failure. 107-- @return boolean: true on success, false on failure.
108function make_dir(directory) 108function make_dir(directory)
109 assert(directory) 109 assert(directory)
110 directory = dir.normalize(directory)
110 fs.execute(fs.quiet(vars.MKDIR.." -p "..fs.Q(directory))) 111 fs.execute(fs.quiet(vars.MKDIR.." -p "..fs.Q(directory)))
111 if not fs.is_dir(directory) then 112 if not fs.is_dir(directory) then
112 return false, "failed making directory "..directory 113 return false, "failed making directory "..directory