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

Jan Kiszka jan.kiszka at siemens.com
Tue Sep 3 12:29:42 UTC 2019


On 03.09.19 14:22, Henning Schild wrote:
> 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

field

> +set -f

Ah, that's much better than any (mis-)quoting.

Jan

> +
>   # Connect directly to hosts in NO_PROXY
>   for H in ${NO_PROXY//,/ }; do
>   	if match_host $1 $H; then
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


More information about the Openembedded-core mailing list