From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id C50393857C7D; Sun, 30 Aug 2020 20:24:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C50393857C7D To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.905-4-g1473bfd3 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: b4947fb6db0cbd8b0c673dc49a18224c44da8116 X-Git-Newrev: 1473bfd37d3f38c4f75adad3eab7e1bf83526339 Message-Id: <20200830202439.C50393857C7D@sourceware.org> Date: Sun, 30 Aug 2020 20:24:39 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 20:24:39 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=1473bfd37d3f38c4f75adad3eab7e1bf83526339 commit 1473bfd37d3f38c4f75adad3eab7e1bf83526339 Author: Michael Wild 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