* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch below.
This commit is contained in:
parent
3557bbc1ea
commit
3434e0c857
@ -1,3 +1,8 @@
|
|||||||
|
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch
|
||||||
|
below.
|
||||||
|
|
||||||
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
2002-07-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* syscalls.cc (seteuid32): Fix incorrect use of system_printf.
|
* syscalls.cc (seteuid32): Fix incorrect use of system_printf.
|
||||||
|
@ -2099,16 +2099,16 @@ seteuid32 (__uid32_t uid)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
if (uid == myself->uid)
|
|
||||||
{
|
|
||||||
syscall_printf ("special case, returning 0");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
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");
|
||||||
|
if (uid == myself->uid)
|
||||||
|
{
|
||||||
|
syscall_printf ("special case, returning 0");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user