diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-10 16:25:48 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-10 16:25:48 +0000 |
commit | 556ceaeb58fc032b78f0a00ba8bd088ea0b90c63 (patch) | |
tree | 6bc247e9090d223f28b53f8eb9c3cee168b94aeb /winsup/cygwin/security.cc | |
parent | 6bbf711e68871242d776c776476306ccb90e9f6b (diff) | |
download | cygnal-556ceaeb58fc032b78f0a00ba8bd088ea0b90c63.tar.gz cygnal-556ceaeb58fc032b78f0a00ba8bd088ea0b90c63.tar.bz2 cygnal-556ceaeb58fc032b78f0a00ba8bd088ea0b90c63.zip |
* sec_acl.cc (setacl): Don't handle DELETE flag specially.
* security.cc (alloc_sd): Ditto.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index ae6d5ddbb..a4fdf8426 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1644,12 +1644,12 @@ alloc_sd (__uid32_t uid, __gid32_t gid, int attribute, int ace_off = 0; /* Construct allow attribute for owner. */ - DWORD owner_allow = (STANDARD_RIGHTS_ALL & ~DELETE) + DWORD owner_allow = STANDARD_RIGHTS_ALL | FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA; if (attribute & S_IRUSR) owner_allow |= FILE_GENERIC_READ; if (attribute & S_IWUSR) - owner_allow |= FILE_GENERIC_WRITE | DELETE; + owner_allow |= FILE_GENERIC_WRITE; if (attribute & S_IXUSR) owner_allow |= FILE_GENERIC_EXECUTE; if ((attribute & (S_IFDIR | S_IWUSR | S_IXUSR)) |