diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 12:27:25 -0800 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 12:27:25 -0800 |
commit | f36d6516b051348a034206a31c5627996adfcfc5 (patch) | |
tree | dcc31c60b04b24bcf661732ff50f3b156e006633 | |
parent | bd471f78761aad2d548edf4f0a14bdbd20bb710e (diff) | |
parent | 7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f (diff) | |
download | luarocks-f36d6516b051348a034206a31c5627996adfcfc5.tar.gz luarocks-f36d6516b051348a034206a31c5627996adfcfc5.tar.bz2 luarocks-f36d6516b051348a034206a31c5627996adfcfc5.zip |
Merge pull request #225 from Tieske/md5_fix
unquoted path fails when spaces are in the filename
-rw-r--r-- | src/luarocks/fs/unix/tools.lua | 2 |
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 = { | |||
325 | function get_md5(file) | 325 | function 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 |