From 7e4e9d0ceadfb0f2a27cbbda32c793e1bb9d0f3f Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Mon, 27 Jan 2014 10:38:23 +0100 Subject: unquoted path fails when spaces are in the filename --- src/luarocks/fs/unix/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { function get_md5(file) local cmd = md5_cmd[cfg.md5checker] if not cmd then return nil, "no MD5 checker command configured" end - local pipe = io.popen(cmd.." "..fs.absolute_name(file)) + local pipe = io.popen(cmd.." "..fs.Q(fs.absolute_name(file))) local computed = pipe:read("*a") pipe:close() if computed then -- cgit v1.2.3-55-g6feb