diff options
| -rw-r--r-- | src/luarocks/fs/win32.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua index 44740850..d419ea23 100644 --- a/src/luarocks/fs/win32.lua +++ b/src/luarocks/fs/win32.lua | |||
| @@ -33,7 +33,9 @@ function absolute_name(pathname, relative_to) | |||
| 33 | assert(type(relative_to) == "string" or not relative_to) | 33 | assert(type(relative_to) == "string" or not relative_to) |
| 34 | 34 | ||
| 35 | relative_to = relative_to or fs.current_dir() | 35 | relative_to = relative_to or fs.current_dir() |
| 36 | if pathname:match("^[\.a-zA-Z]?:?[\\/]") then | 36 | -- FIXME I'm not sure this first \\ should be there at all. |
| 37 | -- What are the Windows rules for drive letters? | ||
| 38 | if pathname:match("^[\\.a-zA-Z]?:?[\\/]") then | ||
| 37 | return pathname | 39 | return pathname |
| 38 | else | 40 | else |
| 39 | return relative_to .. "/" .. pathname | 41 | return relative_to .. "/" .. pathname |
