From 2bd22312df4fd5be14d8833a22ed7abbdcc35559 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 17 Feb 2002 04:59:55 +0000 Subject: * times.cc (hires::prime): Restore thread priority on failure condition. * uinfo.cc (uinfo_init): Use more robust method for determining if process was invoked from a non-cygwin process. * sync.h (muto::init): Eliminate "inheritance" parameter. (new_muto): Reflect removal of parameter. * sync.cc (muto::init): Ditto. * cygheap.cc (cygheap_init): Ditto. * debug.cc (threadname_init): Ditto. * exceptions.cc (events_init): Ditto. * malloc.cc (malloc_init): Ditto. * path.cc (cwdstuff::init): Ditto. * sigproc.cc (sigproc_init): Ditto. * grp.cc (group_lock): Use different method for locking with static member. (read_etc_group): REALLY ensure that read lock mutex is released. * passwd.cc (passwd_lock): Use different method for locking with static member. (read_etc_passwd): REALLY ensure that read lock mutex is released. * shared.cc (sec_user): Correct reversed inheritance test. --- winsup/cygwin/shared.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/shared.cc') diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 117f1db36..7b21e1387 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -240,7 +240,7 @@ PSECURITY_ATTRIBUTES __stdcall sec_user (PVOID sa_buf, PSID sid2, BOOL inherit) { if (!sa_buf) - return inherit ? &sec_none_nih : &sec_none; + return inherit ? &sec_none : &sec_none_nih; PSECURITY_ATTRIBUTES psa = (PSECURITY_ATTRIBUTES) sa_buf; PSECURITY_DESCRIPTOR psd = (PSECURITY_DESCRIPTOR) @@ -252,7 +252,7 @@ sec_user (PVOID sa_buf, PSID sid2, BOOL inherit) if (cygheap->user.sid ()) sid = cygheap->user.sid (); else if (!lookup_name (getlogin (), cygheap->user.logsrv (), sid)) - return inherit ? &sec_none_nih : &sec_none; + return inherit ? &sec_none : &sec_none_nih; size_t acl_len = sizeof (ACL) + 4 * (sizeof (ACCESS_ALLOWED_ACE) - sizeof (DWORD)) -- cgit v1.2.3