aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2014-01-27 10:38:23 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2014-01-27 10:38:23 +0100
commit7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f (patch)
treedcc31c60b04b24bcf661732ff50f3b156e006633
parentbd471f78761aad2d548edf4f0a14bdbd20bb710e (diff)
downloadluarocks-7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f.tar.gz
luarocks-7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f.tar.bz2
luarocks-7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f.zip
unquoted path fails when spaces are in the filename
-rw-r--r--src/luarocks/fs/unix/tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/unix/tools.lua b/src/luarocks/fs/unix/tools.lua
index 7535d679..84ac369c 100644
--- a/src/luarocks/fs/unix/tools.lua
+++ b/src/luarocks/fs/unix/tools.lua
@@ -325,7 +325,7 @@ local md5_cmd = {
325function get_md5(file) 325function get_md5(file)
326 local cmd = md5_cmd[cfg.md5checker] 326 local cmd = md5_cmd[cfg.md5checker]
327 if not cmd then return nil, "no MD5 checker command configured" end 327 if not cmd then return nil, "no MD5 checker command configured" end
328 local pipe = io.popen(cmd.." "..fs.absolute_name(file)) 328 local pipe = io.popen(cmd.." "..fs.Q(fs.absolute_name(file)))
329 local computed = pipe:read("*a") 329 local computed = pipe:read("*a")
330 pipe:close() 330 pipe:close()
331 if computed then 331 if computed then