aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.c
diff options
context:
space:
mode:
authortomas <tomas>2004-11-05 10:54:28 +0000
committertomas <tomas>2004-11-05 10:54:28 +0000
commitc9286d40fe9cacfa022e6ee98905dda9eec6d8b1 (patch)
treead02d1a71348af9b7c3586921f742b9bc5ff9db5 /src/lfs.c
parent2bc7cbf743631ab8317576b58e98159d3ca08dcc (diff)
downloadluafilesystem-c9286d40fe9cacfa022e6ee98905dda9eec6d8b1.tar.gz
luafilesystem-c9286d40fe9cacfa022e6ee98905dda9eec6d8b1.tar.bz2
luafilesystem-c9286d40fe9cacfa022e6ee98905dda9eec6d8b1.zip
Correcoes em valores de retorno de funcoes.
Diffstat (limited to 'src/lfs.c')
-rw-r--r--src/lfs.c6
1 files changed, 4 insertions, 2 deletions
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 @@
9** lfs.lock (fh, mode) 9** lfs.lock (fh, mode)
10** lfs.unlock (fh) 10** lfs.unlock (fh)
11** 11**
12** $Id: lfs.c,v 1.11 2004/11/05 10:37:29 tomas Exp $ 12** $Id: lfs.c,v 1.12 2004/11/05 10:54:28 tomas Exp $
13*/ 13*/
14 14
15#include <errno.h> 15#include <errno.h>
@@ -239,8 +239,10 @@ static int make_dir (lua_State *L) {
239 S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH ); 239 S_IWGRP | S_IXGRP | S_IROTH | S_IXOTH );
240#endif 240#endif
241 lua_pushboolean (L, !fail); 241 lua_pushboolean (L, !fail);
242 if (fail) 242 if (fail) {
243 lua_pushfstring (L, "%s", strerror(errno)); 243 lua_pushfstring (L, "%s", strerror(errno));
244 return 2;
245 }
244 umask (oldmask); 246 umask (oldmask);
245 return 1; 247 return 1;
246} 248}