* spawn.cc (spawn_guts): Move call to set_process_privilege()

to load_registry_hive().
	* registry.cc (load_registry_hive): ditto.
	* fork.cc (fork_parent): Call sec_user_nih() only once.
This commit is contained in:
Corinna Vinschen
2002-05-06 10:05:46 +00:00
parent 3d9bc8a617
commit a991777994
4 changed files with 13 additions and 11 deletions

View File

@ -665,13 +665,6 @@ spawn_guts (HANDLE hToken, const char * prog_arg, const char *const *argv,
&& cygheap->user.token != INVALID_HANDLE_VALUE)
RevertToSelf ();
static BOOL first_time = TRUE;
if (first_time)
{
set_process_privilege (SE_RESTORE_NAME);
first_time = FALSE;
}
/* Load users registry hive. */
load_registry_hive (sid);