]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: mkdir: use correct default permissions filtered by umask
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 9 Feb 2023 20:25:03 +0000 (21:25 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 9 Feb 2023 20:58:07 +0000 (21:58 +0100)
commit283583c5f24000dc4a5872725d21c4313d13350f
tree9a85425054d23c382171e751e62a8a5d6258127c
parentdc70c8dec19b74f0b8668704a2492b4b04d56b73
Cygwin: mkdir: use correct default permissions filtered by umask

Older coreutils created directories with mode bits filtered through
umask.  Newer coreutils creates directories with full permissions,
0777 by default.

This new coreutils behaviour uncovered the fact that default ACEs for
newly created directories were not filtered by umask starting with
commit bc444e5aa4ca.

Fix it by applying umask on the default ACEs.

Fixes: bc444e5aa4ca ("Reapply POSIX ACL change.")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/release/3.4.6
winsup/cygwin/sec/base.cc
This page took 0.029435 seconds and 5 git commands to generate.