Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-07-02 05:53:58 +0400
committerChristopher Faylor <me@cgf.cx>2002-07-02 05:53:58 +0400
commit3434e0c857d36be3b74495672db2aa4b6d806d97 (patch)
tree1e311b887c53cfba21c43facfbaac50c8535b106
parent3557bbc1eab5a032d5d336afb9af2ea8a6c90fc8 (diff)
* 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 a9a3cac9d..f2ab6b6ff 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 1e837f013..438cb7708 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;
}