[LTP] [PATCH] lib/tst_net.sh: Detect quoted parameters correctly

Petr Vorel pvorel@suse.cz
Tue May 8 10:05:48 CEST 2018


Hi,

> If we pass $* to tst_net_read_opts, we cannot detect quoted parameters
> correctly, which process only first number from quoted parameters.
> For example, running sctp_ipsec.sh -s "100 1000 65535":
...
>  if [ -n "$TST_USE_LEGACY_API" ]; then
> -	tst_net_read_opts $*
> +	tst_net_read_opts "$@"
>  	ipver=${TST_IPV6:-4}
>  fi

Acked-by: Petr Vorel <pvorel@suse.cz>

Expect to merge it on Wednesday (if nobody objects), instead of my fix with a note of
missing quotes as a root cause [1].


Kind regards,
Petr

[1] https://lists.linux.it/pipermail/ltp/2018-May/008042.html


More information about the ltp mailing list