diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 65d002bd9..f19dad5ef 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2015-02-25 Corinna Vinschen + + * sec_acl.cc (setacl): Always grant default owner entry + STANDARD_RIGHTS_ALL and FILE_WRITE_ATTRIBUTES access, too. + 2015-02-25 Corinna Vinschen * fhandler_tape.cc (fhandler_dev_tape::_lock): Add cw_sig_restart to diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 0a73e22fe..b2b0586f3 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -258,6 +258,8 @@ setacl (HANDLE handle, path_conv &pc, int nentries, aclent_t *aclbufp, switch (aclbufp[i].a_type) { case DEF_USER_OBJ: + allow |= STANDARD_RIGHTS_ALL + | (pc.fs_is_samba () ? 0 : FILE_WRITE_ATTRIBUTES); if (!add_access_allowed_ace (acl, ace_off++, allow, well_known_creator_owner_sid, acl_len, inheritance)) return -1;