* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token

as well.
This commit is contained in:
Corinna Vinschen 2009-10-07 08:20:49 +00:00
parent b4311a9067
commit dfbf36f8db
2 changed files with 6 additions and 0 deletions

View 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.

View 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 ())