OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
authorcorinna <corinna>
Thu, 9 Apr 2009 09:19:03 +0000 (09:19 +0000)
committercorinna <corinna>
Thu, 9 Apr 2009 09:19:03 +0000 (09:19 +0000)
commit2dd88221f225533c64656b42f6964feb8f11c655
tree17732cd774d0f3dc5a9e494570834e5e7d7f5e3d
parent972c99ef729f678919facdb899e3fdcc36f10500
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Catch an
error when changing the user account on a standalone Samba server.
Explain why.
* sec_acl.cc (setacl): Accommodate additional parameter to set_file_sd.
* sec_helper.cc (SECURITY_SAMBA_UNIX_AUTHORITY): Define.
(well_known_samba_unix_user_fake_sid): Define.
* security.cc (set_file_sd): Take additional parameter if ownership
should be changed.  Restrict requested permissions accordingly.
(set_file_attribute): Accommodate additional parameter to set_file_sd.
* security.h (well_known_samba_unix_user_fake_sid): Declare.
(set_file_sd): Align declaration to above change.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/sec_acl.cc
winsup/cygwin/sec_helper.cc
winsup/cygwin/security.cc
winsup/cygwin/security.h