On Tue, Jul 13, 2021 at 10:31:16AM +0200, Miroslav Lichvar wrote:
> getopt_long() in glibc allows shortened long option names, e.g.
> ptp4l --domain works as --domainNumber. When the match is ambiguous,
> e.g. --fault matches --fault_badpeernet_interval and
> --fault_reset_interval, it is supposed to return an error, but that
> works only if their struct option have different flags or vals.
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=28081
> 
> Set the flag to point to the val itself for a no-op to work around this
> issue and make it less likely a misremembered option name will silently
> match one of multiple possible candidates.
> 
> Signed-off-by: Miroslav Lichvar <mlich...@redhat.com>

Applied.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to