Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-03-07 19:35:56 +0300
committerCorinna Vinschen <corinna@vinschen.de>2003-03-07 19:35:56 +0300
commit6f8102cb71a334f84127e14929855cebf9680c02 (patch)
treeb53e5cd8c3add6d08f2c1ebceb80bbd6db7e5213 /winsup/cygwin/syscalls.cc
parente463d1ac53331c5609b9f2874602cfa4bf0c7e43 (diff)
* syscalls.cc (seteuid32): Fix formatting.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc7
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;
}