diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-05-31 23:52:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-05-31 23:52:06 +0000 |
commit | a383b1e1a3586d79e494834fb7d2c646c8e7ee08 (patch) | |
tree | 7486311734d63df9a7be06ff69905d8bc88768ac /src/skaembutils/s6-mkdir.c | |
parent | 7ab4163bf4757b3d03c41dc3ca007b4bb58e43cf (diff) | |
download | s6-portable-utils-a383b1e1a3586d79e494834fb7d2c646c8e7ee08.tar.xz |
s6-mkdir: fix wrong umask
Diffstat (limited to 'src/skaembutils/s6-mkdir.c')
-rw-r--r-- | src/skaembutils/s6-mkdir.c | 1 |
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) ; |