[setup - the official Cygwin setup program] branch master, updated. release_2.905-4-g1473bfd3
Jon TURNEY
jturney@sourceware.org
Sun Aug 30 20:24:39 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=1473bfd37d3f38c4f75adad3eab7e1bf83526339
commit 1473bfd37d3f38c4f75adad3eab7e1bf83526339
Author: Michael Wild <themiwi@gmail.com>
Date: Thu Aug 27 14:45:42 2020 +0200
Propagate the value of CYGWIN environment variable into scripts
Propagate the value of the CYGWIN environment variable into the
sanitized environment we use to run scripts.
Note: as it stands, this isn't always useful as the initial environment
isn't propagated when setup re-runs itself elevated.
Diff:
---
script.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/script.cc b/script.cc
index 92c3122d..69dc1155 100644
--- a/script.cc
+++ b/script.cc
@@ -89,6 +89,7 @@ init_run_script ()
char *eq = strchr (p, '=');
*eq = '\0';
if (strcasecmp (p, "comspec") != 0
+ && strcasecmp (p, "cygwin") != 0
&& strcasecmp (p, "path") != 0
&& strncasecmp (p, "system", 7) != 0
&& strncasecmp (p, "user", 4) != 0
More information about the Cygwin-apps-cvs
mailing list