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 /winsup/cygwin/syscalls.cc | |
parent | e463d1ac53331c5609b9f2874602cfa4bf0c7e43 (diff) | |
download | cygnal-6f8102cb71a334f84127e14929855cebf9680c02.tar.gz cygnal-6f8102cb71a334f84127e14929855cebf9680c02.tar.bz2 cygnal-6f8102cb71a334f84127e14929855cebf9680c02.zip |
* syscalls.cc (seteuid32): Fix formatting.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 453de8c3e..e8f298c05 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; } |