diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2019-01-29 17:48:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:25:06 +0000 |
commit | 5b5c8ccaba188530ae4b05fd49804aaa74cbb949 (patch) | |
tree | 6c3205bcc33fcd0dca2df110d41621044d0b9611 | |
parent | ebd3c5e1534ba4ac2a6e97725f8d8650d4aa52a0 (diff) | |
download | openembedded-core-5b5c8ccaba188530ae4b05fd49804aaa74cbb949.tar.gz openembedded-core-5b5c8ccaba188530ae4b05fd49804aaa74cbb949.tar.bz2 openembedded-core-5b5c8ccaba188530ae4b05fd49804aaa74cbb949.zip |
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.
(From OE-Core rev: 7e216e806ca765152fd874e24785f783a3201284)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rwxr-xr-x | scripts/oe-git-proxy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy index 7a43fe6a6e..1800942f36 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 |