aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rockspecs/luafilesystem-cvs-1.rockspec5
-rw-r--r--src/lfs.c4
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 @@
1package = "LuaFileSystem" 1package = "LuaFileSystem"
2version = "cvs-1" 2version = "cvs-1"
3source = { 3source = {
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}
6description = { 7description = {
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 = {
18build = { 19build = {
19 type = "module", 20 type = "module",
20 modules = { 21 modules = {
21 lfs = "lfs.c" 22 lfs = "src/lfs.c"
22 } 23 }
23} 24}
diff --git a/src/lfs.c b/src/lfs.c
index 1fa0a5e..6979820 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -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) {
102static int get_dir (lua_State *L) { 102static 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 }