Re: [PATCH nft] main: misleading error reporting in chain definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pablo,

On Mon, Oct 21, 2019 at 05:38:35PM +0200, Pablo Neira Ayuso wrote:
>  # nft add chain x y { type filter hook input priority -30\; }
>  nft: invalid option -- '3'
> 
> Fix this by restricting getopt_long() to the first curly brace.

Wouldn't it suffice to set the first char of OPTSTRING to '+'? Exporting
POSIXLY_CORRECT=1 prior to calling the above command works at least.

Cheers, Phil



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux