From 1725c68ca1f6f4b82f3adf2d2b791091c197230a Mon Sep 17 00:00:00 2001
From: Hisham Muhammad <hisham@gobolinux.org>
Date: Fri, 22 Oct 2010 16:11:55 -0200
Subject: Improve support for win32-msys. Closes issue #3.

---
 src/luarocks/fs/win32/tools.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua
index c3b5398e..d2613b67 100644
--- a/src/luarocks/fs/win32/tools.lua
+++ b/src/luarocks/fs/win32/tools.lua
@@ -246,7 +246,8 @@ function find(at)
    local pipe = io.popen(command_at(at, "find 2> NUL"))
    for file in pipe:lines() do
       -- Windows find is a bit different
-      if file:sub(1,2)==".\\" then file=file:sub(3) end
+      local first_two = file:sub(1,2)
+      if first_two == ".\\" or first_two == "./" then file=file:sub(3) end
       if file ~= "." then
          table.insert(result, (file:gsub("\\", "/")))
       end
-- 
cgit v1.2.3-55-g6feb