]> sourceware.org Git - newlib-cygwin.git/commitdiff
* environ.cc (spenvs): Re-force SYSTEMROOT to always be included in
authorChristopher Faylor <me@cgf.cx>
Wed, 30 Mar 2005 22:06:32 +0000 (22:06 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 30 Mar 2005 22:06:32 +0000 (22:06 +0000)
environment.
(build_env): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/environ.cc

index 3252a1f21c304c03f89aae4adfe6065816d07de2..68802ef6da0c533b244e7a96c6a8dc341c1c7362 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-30  Christopher Faylor  <cgf@timesys.com>
+
+       * environ.cc (spenvs): Re-force SYSTEMROOT to always be included in
+       environment.
+       (build_env): Ditto.
+
 2005-03-30  Christopher Faylor  <cgf@timesys.com>
 
        * environ.cc (spenv::retrieve): Revert most of previous change.
index 18bc4abf75a02d7a36b92f7017025da465ec45e1..e7b17c31a8a4a3e730f3522a3dd59663c89438d3 100644 (file)
@@ -878,7 +878,7 @@ static NO_COPY spenv spenvs[] =
   {NL ("LOGONSERVER="), false, false, &cygheap_user::env_logsrv},
   {NL ("PATH="), false, true, NULL},
   {NL ("SYSTEMDRIVE="), false, false, NULL},
-  {NL ("SYSTEMROOT="), true, false, &cygheap_user::env_systemroot},
+  {NL ("SYSTEMROOT="), true, true, &cygheap_user::env_systemroot},
   {NL ("USERDOMAIN="), false, false, &cygheap_user::env_domain},
   {NL ("USERNAME="), false, false, &cygheap_user::env_name},
   {NL ("USERPROFILE="), false, false, &cygheap_user::env_userprofile}
@@ -984,8 +984,9 @@ build_env (const char * const *envp, char *&envblock, int &envc,
     if (!saw_spenv[i] && (spenvs[i].add_always || cygheap->user.issetuid ()))
       {
          *dstp = spenvs[i].retrieve (no_envblock);
-         if (*dstp && !no_envblock && *dstp != env_dontadd)
+         if (*dstp && (!no_envblock || spenvs[i].force) && *dstp != env_dontadd)
            {
+             *pass_dstp = *dstp;
              tl += strlen (*dstp) + 1;
              dstp++;
            }
This page took 0.035074 seconds and 5 git commands to generate.