[OE-core] [PATCH 4/6] oe-git-proxy: disable shell pathname expansion for the whole script

Henning Schild henning.schild at siemens.com
Tue Sep 3 12:22:22 UTC 2019


From: Henning Schild <henning.schild at siemens.com>

This truly fixes the issue that cbc148d5d93d5f3531434fee7b234a16196b3088
wanted to solve, without breaking the iteration over multiple entries.

Signed-off-by: Henning Schild <henning.schild at siemens.com>
---
 scripts/oe-git-proxy | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 10e6560da4..2f65f0c482 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -133,6 +133,9 @@ if [ -z "$ALL_PROXY" ]; then
 	exec $SOCAT STDIO $METHOD
 fi
 
+# disable pathname expansion, NO_PROXY fielnd could start with "*" or be it
+set -f
+
 # Connect directly to hosts in NO_PROXY
 for H in ${NO_PROXY//,/ }; do
 	if match_host $1 $H; then
-- 
2.21.0



More information about the Openembedded-core mailing list