From 5735d5f6f4cc65cb8afcbd7da83165b6e9cbc5d8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 29 Apr 2011 10:38:12 +0000 Subject: * advapi32.cc: Add comment. (EqualSid): Remove. (CopySid): Remove. (AddAccessAllowedAce): Remove. (AddAccessDeniedAce): Remove. (MakeSelfRelativeSD): Remove. * flock.cc: Replace above functions throughout with their ntdll.dll equivalent. * sec_acl.cc: Ditto. * sec_auth.cc: Ditto. * sec_helper.cc: Ditto. * security.cc: Ditto. * security.h: Ditto. (RtlEqualSid): Declare. Explain why. (RtlCopySid): Ditto. --- winsup/cygwin/flock.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/flock.cc') diff --git a/winsup/cygwin/flock.cc b/winsup/cygwin/flock.cc index 90128175f..970bde6c1 100644 --- a/winsup/cygwin/flock.cc +++ b/winsup/cygwin/flock.cc @@ -171,10 +171,11 @@ allow_others_to_sync () dacl = (PACL) ((char *) sd + (uintptr_t) sd->Dacl); dacl->AclSize = NT_MAX_PATH * sizeof (WCHAR) - ((char *) dacl - (char *) sd); /* Allow everyone to SYNCHRONIZE with this process. */ - if (!AddAccessAllowedAce (dacl, ACL_REVISION, SYNCHRONIZE, - well_known_world_sid)) + status = RtlAddAccessAllowedAce (dacl, ACL_REVISION, SYNCHRONIZE, + well_known_world_sid); + if (!NT_SUCCESS (status)) { - debug_printf ("AddAccessAllowedAce: %lu", GetLastError ()); + debug_printf ("RtlAddAccessAllowedAce: %p", status); return; } /* Set the size of the DACL correctly. */ -- cgit v1.2.3