]> sourceware.org Git - newlib-cygwin.git/commitdiff
* spawn.cc (spawn_guts): Enable appropriate privilege before
authorEgor Duda <deo@logos-m.ru>
Tue, 14 Aug 2001 14:57:44 +0000 (14:57 +0000)
committerEgor Duda <deo@logos-m.ru>
Tue, 14 Aug 2001 14:57:44 +0000 (14:57 +0000)
loading user's registry hive.

winsup/cygwin/ChangeLog
winsup/cygwin/spawn.cc

index 90b743ac7fd39c05891fdb89a8777492084b9f30..d76a51b0fcf21a2a6ca688563af27898e06110ee 100644 (file)
@@ -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>
 
        * fhandler.cc (fhandler_base::fcntl): Use new O_NONBLOCK_MASK define.
index c6750b4dbecad5f9e8a9828d3b866e4dab211374..73df3f31f3ad7a02f41c2fc7e75c6389b421a497 100644 (file)
@@ -631,6 +631,13 @@ skip_arg_parsing:
           && 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);
 
This page took 0.032965 seconds and 5 git commands to generate.