]> sourceware.org Git - newlib-cygwin.git/commitdiff
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Oct 2009 08:20:49 +0000 (08:20 +0000)
as well.

winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc

index b1c7f3af19448586d619a7e98d37deca97f379c6..c5b27cf7ad50f5e25f92e9e00b9f799027e7ddf8 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
+
+       * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
+       as well.
+
 2009-10-07  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
index c9767faf88109592b06a978076015cb285f907e2..1529cb66bc4b51b3f64fe83defcae7c55803f638 100644 (file)
@@ -2805,6 +2805,7 @@ seteuid32 (__uid32_t uid)
          cygheap->user.curr_primary_token = NO_IMPERSONATION;
          return -1;
        }
+      set_cygwin_privileges (cygheap->user.curr_primary_token);
       set_cygwin_privileges (cygheap->user.curr_imp_token);
     }
   if (!cygheap->user.reimpersonate ())
This page took 0.035042 seconds and 5 git commands to generate.