Re: [PATCH nft] main: enforce options before commands

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

 



Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
> This patch turns on POSIXLY_CORRECT on the getopt parser to enforce
> options before commands. Users get a hint in such a case:
> 
>  # nft list ruleset -a
>  Error: syntax error, options must be specified before commands
>  nft list ruleset -a

FWIW i like this better than the attempt to sanitize/escape argv[].



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

  Powered by Linux