[oe-commits] [openembedded-core] 13/28: oe-git-proxy: Avoid resolving NO_PROXY against local files

git at git.openembedded.org git at git.openembedded.org
Wed Jan 30 22:00:15 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6c78b98d0f07b390ff8259ab0689bd6bee730831
Author: Jan Kiszka <jan.kiszka at siemens.com>
AuthorDate: Tue Jan 29 17:48:35 2019 +0100

    oe-git-proxy: Avoid resolving NO_PROXY against local files
    
    NO_PROXY may contain * elements, and if we are unlucky (or want to match
    all hosts with *), we will pick up local files rather than doing the
    match in match_host. Quoting helps here.
    
    Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-git-proxy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy
index 7a43fe6..1800942 100755
--- a/scripts/oe-git-proxy
+++ b/scripts/oe-git-proxy
@@ -131,8 +131,8 @@ if [ -z "$ALL_PROXY" ]; then
 fi
 
 # Connect directly to hosts in NO_PROXY
-for H in ${NO_PROXY//,/ }; do
-	if match_host $1 $H; then
+for H in "${NO_PROXY//,/ }"; do
+	if match_host $1 "$H"; then
 		exec $SOCAT STDIO $METHOD
 	fi
 done

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list