diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b1c7f3af1..c5b27cf7a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-10-07 Corinna Vinschen + + * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token + as well. + 2009-10-07 Corinna Vinschen * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index c9767faf8..1529cb66b 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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 ())