* spawn.cc (spawn_guts): Enable appropriate privilege before
loading user's registry hive.
This commit is contained in:
parent
4acf3edf6a
commit
7da232abd7
|
@ -1,3 +1,8 @@
|
||||||
|
2001-08-14 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
|
* spawn.cc (spawn_guts): Enable appropriate privilege before
|
||||||
|
loading user's registry hive.
|
||||||
|
|
||||||
Mon Aug 13 22:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
Mon Aug 13 22:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.
|
* fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.
|
||||||
|
|
|
@ -631,6 +631,13 @@ skip_arg_parsing:
|
||||||
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
&& cygheap->user.token != INVALID_HANDLE_VALUE)
|
||||||
RevertToSelf ();
|
RevertToSelf ();
|
||||||
|
|
||||||
|
static BOOL first_time = TRUE;
|
||||||
|
if (first_time)
|
||||||
|
{
|
||||||
|
set_process_privilege (SE_RESTORE_NAME);
|
||||||
|
first_time = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Load users registry hive. */
|
/* Load users registry hive. */
|
||||||
load_registry_hive (sid);
|
load_registry_hive (sid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue