diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2014-01-27 10:38:23 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2014-01-27 10:38:23 +0100 |
| commit | 7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f (patch) | |
| tree | dcc31c60b04b24bcf661732ff50f3b156e006633 | |
| parent | bd471f78761aad2d548edf4f0a14bdbd20bb710e (diff) | |
| download | luarocks-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.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 |
