OSDN Git Service

* security.cc (get_info_from_sd): New function.
authorcorinna <corinna>
Fri, 11 Apr 2003 09:38:05 +0000 (09:38 +0000)
committercorinna <corinna>
Fri, 11 Apr 2003 09:38:05 +0000 (09:38 +0000)
commit7c9e47bc1070f810d91499ee88a785d35b7f83c2
tree63e5d8a5bdebb23e2d78e7f71f00c829f4e93323
parent180b9a5bcc4a4cd6d30d5bd1da59ab49235c2c6b
* security.cc (get_info_from_sd): New function.
(get_nt_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_file_attribute): Move sd error handling to get_info_from_sd.
and symlink handling to fhandler_disk_file::fstat_helper.
(get_nt_object_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_object_attribute): Remove symlink handling and simply return -1
when ntsec is off.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): For
symlinks set the attribute, call get_file_attribute to get the ids
and return.  In the normal case call get_file_attribute with the
addresses of the buffer ids and do not recheck if the file is a socket.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/security.cc