From c9286d40fe9cacfa022e6ee98905dda9eec6d8b1 Mon Sep 17 00:00:00 2001 From: tomas Date: Fri, 5 Nov 2004 10:54:28 +0000 Subject: Correcoes em valores de retorno de funcoes. --- src/lfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lfs.c b/src/lfs.c index a5c152a..6366aab 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.11 2004/11/05 10:37:29 tomas Exp $ +** $Id: lfs.c,v 1.12 2004/11/05 10:54:28 tomas Exp $ */ #include @@ -239,8 +239,10 @@ static int make_dir (lua_State *L) { S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH ); #endif lua_pushboolean (L, !fail); - if (fail) + if (fail) { lua_pushfstring (L, "%s", strerror(errno)); + return 2; + } umask (oldmask); return 1; } -- cgit v1.2.3-55-g6feb