* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch below.

This commit is contained in:
Christopher Faylor 2002-07-02 01:53:58 +00:00
parent 3557bbc1ea
commit 3434e0c857
2 changed files with 10 additions and 5 deletions

View File

@ -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>
* syscalls.cc (seteuid32): Fix incorrect use of system_printf.

View File

@ -2099,16 +2099,16 @@ seteuid32 (__uid32_t uid)
return 0;
failed:
if (uid == myself->uid)
{
syscall_printf ("special case, returning 0");
return 0;
}
cygheap->user.token = sav_token;
cygheap->user.impersonated = sav_impersonated;
if (cygheap->user.issetuid ()
&& !ImpersonateLoggedOnUser (cygheap->user.token))
system_printf ("Impersonating in seteuid failed: %E");
if (uid == myself->uid)
{
syscall_printf ("special case, returning 0");
return 0;
}
return -1;
}