aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-02 01:53:58 +0000
committerChristopher Faylor <me@cgf.cx>2002-07-02 01:53:58 +0000
commit3434e0c857d36be3b74495672db2aa4b6d806d97 (patch)
tree1e311b887c53cfba21c43facfbaac50c8535b106
parent3557bbc1eab5a032d5d336afb9af2ea8a6c90fc8 (diff)
downloadnewlib-3434e0c857d36be3b74495672db2aa4b6d806d97.zip
newlib-3434e0c857d36be3b74495672db2aa4b6d806d97.tar.gz
newlib-3434e0c857d36be3b74495672db2aa4b6d806d97.tar.bz2
* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch below.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/syscalls.cc10
2 files changed, 10 insertions, 5 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a9a3cac..f2ab6b6 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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.
2002-07-02 Christopher January <chris@atomice.net>
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 1e837f0..438cb77 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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;
}