diff options
-rw-r--r-- | rockspecs/luafilesystem-cvs-1.rockspec | 5 | ||||
-rw-r--r-- | src/lfs.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/rockspecs/luafilesystem-cvs-1.rockspec b/rockspecs/luafilesystem-cvs-1.rockspec index 686c6f9..253f4f1 100644 --- a/rockspecs/luafilesystem-cvs-1.rockspec +++ b/rockspecs/luafilesystem-cvs-1.rockspec | |||
@@ -1,7 +1,8 @@ | |||
1 | package = "LuaFileSystem" | 1 | package = "LuaFileSystem" |
2 | version = "cvs-1" | 2 | version = "cvs-1" |
3 | source = { | 3 | source = { |
4 | url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem" | 4 | url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem", |
5 | cvs_tag = "HEAD" | ||
5 | } | 6 | } |
6 | description = { | 7 | description = { |
7 | summary = "File System Library for the Lua Programming Language", | 8 | summary = "File System Library for the Lua Programming Language", |
@@ -18,6 +19,6 @@ dependencies = { | |||
18 | build = { | 19 | build = { |
19 | type = "module", | 20 | type = "module", |
20 | modules = { | 21 | modules = { |
21 | lfs = "lfs.c" | 22 | lfs = "src/lfs.c" |
22 | } | 23 | } |
23 | } | 24 | } |
@@ -15,7 +15,7 @@ | |||
15 | ** lfs.touch (filepath [, atime [, mtime]]) | 15 | ** lfs.touch (filepath [, atime [, mtime]]) |
16 | ** lfs.unlock (fh) | 16 | ** lfs.unlock (fh) |
17 | ** | 17 | ** |
18 | ** $Id: lfs.c,v 1.44 2008/01/16 22:29:26 mascarenhas Exp $ | 18 | ** $Id: lfs.c,v 1.45 2008/01/16 22:33:24 mascarenhas Exp $ |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <errno.h> | 21 | #include <errno.h> |
@@ -102,7 +102,7 @@ static int change_dir (lua_State *L) { | |||
102 | static int get_dir (lua_State *L) { | 102 | static int get_dir (lua_State *L) { |
103 | char *path; | 103 | char *path; |
104 | if ((path = getcwd(NULL, 0)) == NULL) { | 104 | if ((path = getcwd(NULL, 0)) == NULL) { |
105 | lua_pushnil(L) | 105 | lua_pushnil(L); |
106 | lua_pushstring(L, getcwd_error); | 106 | lua_pushstring(L, getcwd_error); |
107 | return 2; | 107 | return 2; |
108 | } | 108 | } |