diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-24 01:02:11 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-24 01:02:11 -0300 |
commit | 5495f3c270712c1eb3e0c235f77fc50a24a30374 (patch) | |
tree | 7b12514d0c46805bfd24804d2ee69a84c9d4e83a /src | |
parent | db90cb44d7cde5457f7f55e8c93a0718811ef149 (diff) | |
download | luarocks-5495f3c270712c1eb3e0c235f77fc50a24a30374.tar.gz luarocks-5495f3c270712c1eb3e0c235f77fc50a24a30374.tar.bz2 luarocks-5495f3c270712c1eb3e0c235f77fc50a24a30374.zip |
A missing CWD returns "" for lfs.current_dir() on Ubuntu
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index c3f92bda..48db4a0d 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -208,7 +208,7 @@ end | |||
208 | -- a crossplatform way. | 208 | -- a crossplatform way. |
209 | function fs_lua.change_dir_to_root() | 209 | function fs_lua.change_dir_to_root() |
210 | local current = lfs.currentdir() | 210 | local current = lfs.currentdir() |
211 | if not current then | 211 | if not current or current == "" then |
212 | return false | 212 | return false |
213 | end | 213 | end |
214 | table.insert(dir_stack, current) | 214 | table.insert(dir_stack, current) |