Browse Source

* Prevent propagation of ' !proxy' environment variable to programs launched by Dos.exec by renaming it to '_!proxy' after handling in startup code

git-svn-id: trunk@17936 -
pierre 14 years ago
parent
commit
cdcabe3ee4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      rtl/go32v2/system.pp

+ 5 - 1
rtl/go32v2/system.pp

@@ -404,7 +404,11 @@ begin
            strcopy(argv[3], @proxy_s[14]);
            allocarg(4,4);
            strcopy(argv[4], @proxy_s[19]);
-
+           { We need to change this variable env name
+             otherwise it will be used by other DJGPP variables
+             if we call them. PM 2011-07-04
+             Hide it as '_!proxy' instead of ' !proxy' }
+           hp^[0]:='_';
            useproxy:=true;
            break;
          end;