]> git.e2factory.org Git - e2factory.git/commitdiff
e2lib: in mkdir() use same parse_mode argument
authorTobias Ulmer <tu@emlix.com>
Tue, 5 Sep 2017 14:54:12 +0000 (16:54 +0200)
committerTobias Ulmer <tu@emlix.com>
Mon, 10 Dec 2018 17:00:11 +0000 (18:00 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 836cfabc3ad6672030d6cc02aea51e2fa05bca45..8f4db94a2e26c55ab43e31d7f4a6b483eff0603b 100644 (file)
@@ -2180,7 +2180,7 @@ function e2lib.mkdir(dir, mode)
     local re
 
     if mode == nil then
-        mode, re = e2lib.parse_mode("a+rwx")
+        mode, re = e2lib.parse_mode("777")
         if not mode then
             return false, re
         end
@@ -2207,7 +2207,7 @@ function e2lib.mkdir_recursive(path, mode)
     local rc, re, errnum, eexist
 
     if mode == nil then
-        mode, re = e2lib.parse_mode("ugo+rwx")
+        mode, re = e2lib.parse_mode("777")
         if not mode then
             return false, re
         end