[setup - the official Cygwin setup program] branch master, updated. release_2.905-4-g1473bfd3

Jon TURNEY via Cygwin-apps-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=1473bfd37d3f38c4f75adad3eab7e1bf83526339

commit 1473bfd37d3f38c4f75adad3eab7e1bf83526339
Author: Michael Wild <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.