OSDN Git Service

* syscalls.cc (seteuid32): Fix formatting.
authorcorinna <corinna>
Fri, 7 Mar 2003 16:35:55 +0000 (16:35 +0000)
committercorinna <corinna>
Fri, 7 Mar 2003 16:35:55 +0000 (16:35 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc

index f9c4f1a..160eba7 100644 (file)
@@ -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
index 453de8c..e8f298c 100644 (file)
@@ -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;
 }