* syscalls.cc (seteuid32): Fix formatting.
This commit is contained in:
parent
e463d1ac53
commit
6f8102cb71
|
@ -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>
|
2003-03-04 Thomas Pfaff <tpfaff@gmx.net>
|
||||||
|
|
||||||
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
|
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
|
||||||
|
|
|
@ -2040,7 +2040,8 @@ seteuid32 (__uid32_t uid)
|
||||||
|
|
||||||
/* Set process def dacl to allow access to impersonated token */
|
/* Set process def dacl to allow access to impersonated token */
|
||||||
char dacl_buf[MAX_DACL_LEN (5)];
|
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))
|
if (sec_acl ((PACL) dacl_buf, FALSE, origpsid, psid2))
|
||||||
{
|
{
|
||||||
TOKEN_DEFAULT_DACL tdacl;
|
TOKEN_DEFAULT_DACL tdacl;
|
||||||
|
@ -2110,11 +2111,11 @@ success:
|
||||||
groups.ischanged = FALSE;
|
groups.ischanged = FALSE;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
cygheap->user.token = sav_token;
|
cygheap->user.token = sav_token;
|
||||||
cygheap->user.impersonated = sav_impersonated;
|
cygheap->user.impersonated = sav_impersonated;
|
||||||
if (cygheap->user.issetuid ()
|
if (cygheap->user.issetuid ()
|
||||||
&& !ImpersonateLoggedOnUser (cygheap->user.token))
|
&& !ImpersonateLoggedOnUser (cygheap->user.token))
|
||||||
system_printf ("Impersonating in seteuid failed: %E");
|
system_printf ("Impersonating in seteuid failed: %E");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue