http://bugs.winehq.org/show_bug.cgi?id=33576 --- Comment #26 from Joel Holdsworth <joel@airwebreathe.org.uk> --- Cygwin and MSYS2 are affected by this bug causing the following POSIX APIs to silently malfunction: - chmod / fchmod: DACL not updated, permissions unchanged - chown / fchown: owner/group may update but DACL is wrong - open(O_CREAT) / mkdir: post-creation umask fixup has no effect - POSIX ACL setters: `setfacl` silently fails - stat / fstat: reads back wrong permissions - access: checks against wrong permissions `NtSetSecurityObject()` returns `STATUS_SUCCESS` when called to replace a file's DACL, but the resulting DACL is wrong. Instead of fully replacing the DACL with the caller-supplied ACL (and honoring `SE_DACL_PROTECTED` to discard inherited ACEs), Wine partially merges the new ACL with existing entries. The SYSTEM ACE (`S-1-5-18`) is always retained, and the user's ACE mask is not set to the requested value. This affects both: - `DACL_SECURITY_INFORMATION` (the chmod/umask code path) - `ALL_SECURITY_INFORMATION` (the chown code path) Both variants exhibit the same incorrect behavior. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.