diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-14 13:40:07 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-14 13:40:07 +0000 |
commit | ddf9c4a7444970b5ad4c0ed4a82bdc7bd4964c15 (patch) | |
tree | 0f0c9b57900da5163c44f21cc1b3e7288e677d1f /winsup/cygwin/sec_acl.cc | |
parent | ba1a97a18b5d629f62c691d62c69fe97da903b05 (diff) | |
download | cygnal-ddf9c4a7444970b5ad4c0ed4a82bdc7bd4964c15.tar.gz cygnal-ddf9c4a7444970b5ad4c0ed4a82bdc7bd4964c15.tar.bz2 cygnal-ddf9c4a7444970b5ad4c0ed4a82bdc7bd4964c15.zip |
* fhandler.cc (fhandler_base::open): Accomodate query_write_control
query_state.
(fhandler_base::fchown): New method.
* fhandler.h: Declare fchown method in fhandler_base,
fhandler_disk_file and fhandler_virtual.
(enum query_state): Add query_write_control.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Set query_state
to query_write_control. Only remove FILE_ATTRIBUTE_READONLY if not
setting security descriptor.
(fhandler_disk_file::fchown): New method.
* fhandler_virtual.cc (fhandler_virtual::fchown): New method.
* sec_acl.cc (setacl): Call write_sd with additional handle attribute.
* security.cc (write_sd): Take handle argument. Only request owner
if getting SE_RESTORE_NAME privilege failed. Only open file if
NtSetSecurityObject failed or handle is NULL.
(set_nt_attribute): Call write_sd with additional handle attribute.
* security.h (write_sd): Declare with additional handle argument.
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r-- | winsup/cygwin/sec_acl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index dc2473e9e..a8dbe2f90 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -223,7 +223,7 @@ setacl (const char *file, int nentries, __aclent32_t *aclbufp) return -1; } debug_printf ("Created SD-Size: %d", sd_ret.size ()); - return write_sd (file, sd_ret); + return write_sd (NULL, file, sd_ret); } /* Temporary access denied bits */ |