[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aM-eJIAj2cnj34On@shredder>
Date: Sun, 21 Sep 2025 09:41:40 +0300
From: Ido Schimmel <idosch@...sch.org>
To: David Yang <mmyangfl@...il.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>, Shuah Khan <shuah@...nel.org>,
Petr Machata <petrm@...dia.com>, Amit Cohen <amcohen@...dia.com>,
Li Shuang <shuali@...hat.com>,
Alessandro Zanni <alessandro.zanni87@...il.com>,
Hangbin Liu <liuhangbin@...il.com>, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v3] selftests: forwarding: Reorder (ar)ping
arguments to obey POSIX getopt
On Fri, Sep 19, 2025 at 01:35:33PM +0800, David Yang wrote:
> Quoted from musl wiki:
>
> GNU getopt permutes argv to pull options to the front, ahead of
> non-option arguments. musl and the POSIX standard getopt stop
> processing options at the first non-option argument with no
> permutation.
>
> Thus these scripts stop working on musl since non-option arguments for
> tools using getopt() (in this case, (ar)ping) do not always come last.
> Fix it by reordering arguments.
>
> Signed-off-by: David Yang <mmyangfl@...il.com>
Reviewed-by: Ido Schimmel <idosch@...dia.com>
Powered by blists - more mailing lists