mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-23 19:43:06 +00:00
*** empty log message ***
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package = "LuaFileSystem"
|
||||
version = "cvs-1"
|
||||
source = {
|
||||
url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem"
|
||||
url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem",
|
||||
cvs_tag = "HEAD"
|
||||
}
|
||||
description = {
|
||||
summary = "File System Library for the Lua Programming Language",
|
||||
@@ -18,6 +19,6 @@ dependencies = {
|
||||
build = {
|
||||
type = "module",
|
||||
modules = {
|
||||
lfs = "lfs.c"
|
||||
lfs = "src/lfs.c"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
** lfs.touch (filepath [, atime [, mtime]])
|
||||
** lfs.unlock (fh)
|
||||
**
|
||||
** $Id: lfs.c,v 1.44 2008/01/16 22:29:26 mascarenhas Exp $
|
||||
** $Id: lfs.c,v 1.45 2008/01/16 22:33:24 mascarenhas Exp $
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
@@ -102,7 +102,7 @@ static int change_dir (lua_State *L) {
|
||||
static int get_dir (lua_State *L) {
|
||||
char *path;
|
||||
if ((path = getcwd(NULL, 0)) == NULL) {
|
||||
lua_pushnil(L)
|
||||
lua_pushnil(L);
|
||||
lua_pushstring(L, getcwd_error);
|
||||
return 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user