diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-08-31 07:53:26 -0700 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-08-31 07:53:26 -0700 |
commit | 7f5d6901c0fae191bf54f560a9f55d3b59e843ac (patch) | |
tree | e465d320333f19a1c4c7befd117442bf53000ae0 | |
parent | e76fe2a7000d7f70326588f7a8fec07ca8d5ad33 (diff) | |
parent | 1497c91a70bc70f26b0bdda650fcaa0bbfdd1225 (diff) | |
download | luarocks-7f5d6901c0fae191bf54f560a9f55d3b59e843ac.tar.gz luarocks-7f5d6901c0fae191bf54f560a9f55d3b59e843ac.tar.bz2 luarocks-7f5d6901c0fae191bf54f560a9f55d3b59e843ac.zip |
Merge pull request #43 from ignacio/master
Confirm that lfs.chdir("/") works on windows
-rw-r--r-- | src/luarocks/fs/lua.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 0a748b0e..1a7e4eff 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -159,8 +159,7 @@ end | |||
159 | -- a crossplatform way. | 159 | -- a crossplatform way. |
160 | function change_dir_to_root() | 160 | function change_dir_to_root() |
161 | table.insert(dir_stack, lfs.currentdir()) | 161 | table.insert(dir_stack, lfs.currentdir()) |
162 | -- TODO Does this work on Windows? | 162 | lfs.chdir("/") -- works on Windows too |
163 | lfs.chdir("/") | ||
164 | end | 163 | end |
165 | 164 | ||
166 | --- Change working directory to the previous in the dir stack. | 165 | --- Change working directory to the previous in the dir stack. |