about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-05-31 23:52:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-05-31 23:52:06 +0000
commita383b1e1a3586d79e494834fb7d2c646c8e7ee08 (patch)
tree7486311734d63df9a7be06ff69905d8bc88768ac
parent7ab4163bf4757b3d03c41dc3ca007b4bb58e43cf (diff)
downloads6-portable-utils-a383b1e1a3586d79e494834fb7d2c646c8e7ee08.tar.gz
s6-portable-utils-a383b1e1a3586d79e494834fb7d2c646c8e7ee08.tar.xz
s6-portable-utils-a383b1e1a3586d79e494834fb7d2c646c8e7ee08.zip
s6-mkdir: fix wrong umask
-rw-r--r--src/skaembutils/s6-mkdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/skaembutils/s6-mkdir.c b/src/skaembutils/s6-mkdir.c
index 2a8fc74..352669a 100644
--- a/src/skaembutils/s6-mkdir.c
+++ b/src/skaembutils/s6-mkdir.c
@@ -71,6 +71,7 @@ int main (int argc, char const *const *argv)
     }
     argc -= l.ind ; argv += l.ind ;
   }
+  umask(0) ;
   for ( ; *argv ; argv++)
     e |= parents ? doparents(*argv, mode, verbose) :
                    doit(*argv, mode, verbose, 1) ;