(main): Don't set the umask to 0 and hand-apply
authorJim Meyering <jim@meyering.net>
Sat, 30 Sep 2000 08:49:17 +0000 (08:49 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Sep 2000 08:49:17 +0000 (08:49 +0000)
commit105cbe3ea31fbb1700051c98b222c069701746e2
treefc9dcd2b9e9e3e0f314be7516f266875ee776ea9
parentf14dbb1710d6cf7ee0acb5c65af367d1c8e322c0
(main): Don't set the umask to 0 and hand-apply
the previously-set umask unconditionally.  Do that only when a
MODE has been specified.  Otherwise, call mkdir with the full
creation mask (0777 or 0666) and let the kernel apply the umask.
The difference shows up only on file systems with ACL support
when the containing directory has a default ACL.
Patch by Andreas Gruenbacher.
src/mkdir.c