From 3219f4618df9fa4f4a54d2d3bcc116380bafa217 Mon Sep 17 00:00:00 2001 From: tomas Date: Mon, 1 Nov 2004 08:57:56 +0000 Subject: Correcao no valor de retorno da mkdir. --- src/lfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lfs.c b/src/lfs.c index 3644b03..e1dfb74 100644 --- a/src/lfs.c +++ b/src/lfs.c @@ -9,7 +9,7 @@ ** lfs.lock (fh, mode) ** lfs.unlock (fh) ** -** $Id: lfs.c,v 1.6 2004/10/27 18:04:50 tomas Exp $ +** $Id: lfs.c,v 1.7 2004/11/01 08:57:56 tomas Exp $ */ #include @@ -233,7 +233,7 @@ static int make_dir (lua_State *L) { fail = mkdir (path, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH ); #endif - lua_pushboolean (L, fail); + lua_pushboolean (L, !fail); umask (oldmask); return 1; } -- cgit v1.2.3-55-g6feb