On Wed, Jul 25, 2018 at 05:26:54PM +0200, Jakub Sitnicki wrote:
> Because getopt() will set optopt for both known and unknown options,
> we need to differentiate between them ourselves by checking if we
> know the option. Do that by looking up its value.
>
> Also, because we are using GNU extensions to getopt(), we need to be
> resetting getopt() state by setting optind to 0 instead of 1 as
> pointed out in NOTES in getopt(3) man-page. Not doing so results in
> invalid reads and optopt being set to a garbarge value.
>
> Fixes: 3ec06ea9c668 ("ovn-nbctl: Initial support for daemon mode.")
> Signed-off-by: Jakub Sitnicki <[email protected]>
Thanks, applied to master and branch-2.10.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev