소스 검색

* 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 년 전
부모
커밋
cdcabe3ee4
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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;