mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-01 12:35:44 +08:00
* spawn.cc (spawn_guts): More hToken removal cleanup.
This commit is contained in:
parent
2fbf4a7f36
commit
077d8b23c8
@ -1,3 +1,7 @@
|
||||
2002-06-11 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* spawn.cc (spawn_guts): More hToken removal cleanup.
|
||||
|
||||
2002-06-09 Pierre Humblet <pierre.humblet@ieee.org>
|
||||
|
||||
* spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih()
|
||||
|
@ -654,9 +654,6 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||
since it's value is needed by `sec_user'. */
|
||||
PSECURITY_ATTRIBUTES sec_attribs = sec_user_nih (sa_buf, sid);
|
||||
|
||||
/* Remove impersonation */
|
||||
if (cygheap->user.impersonated
|
||||
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
||||
RevertToSelf ();
|
||||
|
||||
/* Load users registry hive. */
|
||||
@ -694,9 +691,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||
&pi);
|
||||
/* Restore impersonation. In case of _P_OVERLAY this isn't
|
||||
allowed since it would overwrite child data. */
|
||||
if (mode != _P_OVERLAY
|
||||
&& cygheap->user.impersonated
|
||||
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
||||
if (mode != _P_OVERLAY)
|
||||
ImpersonateLoggedOnUser (cygheap->user.token);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user