diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-07 16:35:56 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-07 16:35:56 +0000 |
commit | 6f8102cb71a334f84127e14929855cebf9680c02 (patch) | |
tree | b53e5cd8c3add6d08f2c1ebceb80bbd6db7e5213 | |
parent | e463d1ac53331c5609b9f2874602cfa4bf0c7e43 (diff) | |
download | newlib-6f8102cb71a334f84127e14929855cebf9680c02.zip newlib-6f8102cb71a334f84127e14929855cebf9680c02.tar.gz newlib-6f8102cb71a334f84127e14929855cebf9680c02.tar.bz2 |
* syscalls.cc (seteuid32): Fix formatting.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index f9c4f1a..160eba7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-03-07 Corinna Vinschen <corinna@vinschen.de> + + * syscalls.cc (seteuid32): Fix formatting. + 2003-03-04 Thomas Pfaff <tpfaff@gmx.net> * thread.cc (MTinterface::fixup_after_fork): Initialize mainthread diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 453de8c..e8f298c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -2040,7 +2040,8 @@ seteuid32 (__uid32_t uid) /* Set process def dacl to allow access to impersonated token */ char dacl_buf[MAX_DACL_LEN (5)]; - if (usersid != (origpsid = cygheap->user.orig_sid ())) psid2 = usersid; + if (usersid != (origpsid = cygheap->user.orig_sid ())) + psid2 = usersid; if (sec_acl ((PACL) dacl_buf, FALSE, origpsid, psid2)) { TOKEN_DEFAULT_DACL tdacl; @@ -2110,11 +2111,11 @@ success: groups.ischanged = FALSE; return 0; - failed: +failed: cygheap->user.token = sav_token; cygheap->user.impersonated = sav_impersonated; if (cygheap->user.issetuid () - && !ImpersonateLoggedOnUser (cygheap->user.token)) + && !ImpersonateLoggedOnUser (cygheap->user.token)) system_printf ("Impersonating in seteuid failed: %E"); return -1; } |