OSDN Git Service

* fhandler.cc (fhandler_base::open): When creating a file on a
authorcorinna <corinna>
Tue, 8 Mar 2011 23:26:14 +0000 (23:26 +0000)
committercorinna <corinna>
Tue, 8 Mar 2011 23:26:14 +0000 (23:26 +0000)
commite0c0cfd9ca0eb73982fa68e7bb138169f096c06e
treec04ea2a36ed8a53f40829b4ff3cd9e0e91739439
parentdabeffbdd4501c5bf07d721a1f9bc76424d069d6
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/fhandler_socket.cc
winsup/cygwin/path.cc
winsup/cygwin/security.cc
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h