aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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}