* sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.

This commit is contained in:
Corinna Vinschen 2015-02-19 14:15:44 +00:00
parent c3470988cf
commit c53c879db4
3 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2015-02-19 Corinna Vinschen <corinna@vinschen.de>
* sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.
2015-02-18 Corinna Vinschen <corinna@vinschen.de>
* ldap.cc (struct cyg_ldap_search): Add scope member.

View File

@ -23,10 +23,15 @@ Bug Fixes
- Remove a debug message accidentally printed to the terminal window
if an application calls fcntl(F_SETFL) erroneously.
- Regression in 1.7.34: acl(SETACL, ...) overwrote the incoming acltent_t
array for bookkeeping purposes while iterating over its entries. This
broke reusing the acl in the calling application (e.g. setfacl).
Addresses: https://cygwin.com/ml/cygwin/2015-02/msg00304.html
- Two regressions in 1.7.34 acl(SETACL, ...):
- SETACL overwrote the incoming acltent_t array for bookkeeping purposes
while iterating over its entries. This broke reusing the acl in the
calling application (e.g. setfacl).
Addresses: https://cygwin.com/ml/cygwin/2015-02/msg00304.html
- SETACL accidentally missed to grant owner FILE_WRITE_ATTRIBUTES access.
Addresses: https://cygwin.com/ml/cygwin/2015-02/msg00457.html
- 64 bit: Export forgotten symbol __mempcpy.
Addresses: https://cygwin.com/ml/cygwin/2015-02/msg00394.html

View File

@ -1,7 +1,7 @@
/* sec_acl.cc: Sun compatible ACL functions.
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2014 Red Hat, Inc.
2011, 2012, 2014, 2015 Red Hat, Inc.
Written by Corinna Vinschen <corinna@vinschen.de>
@ -138,7 +138,8 @@ setacl (HANDLE handle, path_conv &pc, int nentries, aclent_t *aclbufp,
{
case USER_OBJ:
allow = &owner_allow;
*allow = STANDARD_RIGHTS_ALL;
*allow = STANDARD_RIGHTS_ALL
| (pc.fs_is_samba () ? 0 : FILE_WRITE_ATTRIBUTES);
break;
case GROUP_OBJ:
allow = &group_allow;