diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-03-08 14:26:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-03-08 14:26:15 +0000 |
commit | 69d7815eae1b235e4ca81bbc22293402435da2da (patch) | |
tree | 58ca20e6dcdcc57afbf8f1199f950c621a6767fa /winsup/cygwin/wincap.h | |
parent | 6777e53972bd4587dca1d740a9b9e0622d5016ba (diff) | |
download | newlib-69d7815eae1b235e4ca81bbc22293402435da2da.zip newlib-69d7815eae1b235e4ca81bbc22293402435da2da.tar.gz newlib-69d7815eae1b235e4ca81bbc22293402435da2da.tar.bz2 |
* fhandler.cc (fhandler_base::open): When creating a file on a
filesystem supporting ACLs, create the file with WRITE_DAC access.
Explain why.
* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for
directories.
* fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets.
* path.cc (symlink_worker): Ditto for symlinks.
* security.cc (get_file_sd): Always call GetSecurityInfo for directories
on XP and Server 2003. Improve comment to explain why.
(set_file_attribute): Explicitely cast mode_t value to bool in call to
get_file_sd.
* wincap.h (wincaps::use_get_sec_info_on_dirs): New element.
* wincap.cc: Implement above element throughout.
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index f1eb7a6..60d0512 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -52,6 +52,7 @@ struct wincaps unsigned has_fast_cwd : 1; unsigned has_restricted_raw_disk_access : 1; unsigned use_dont_resolve_hack : 1; + unsigned use_get_sec_info_on_dirs : 1; }; class wincapc @@ -109,6 +110,7 @@ public: bool IMPLEMENT (has_fast_cwd) bool IMPLEMENT (has_restricted_raw_disk_access) bool IMPLEMENT (use_dont_resolve_hack) + bool IMPLEMENT (use_get_sec_info_on_dirs) #undef IMPLEMENT }; |