Re: [hackers] [PATCH][sbase] getconf: fail if any other flag than -v is used

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Tue, 31 Jan 2017 10:32:01 -0800

Mattias Andrée <maandree_AT_kth.se> wrote:

> Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
> ---
> getconf.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/getconf.c b/getconf.c
> index e611659..d927f2d 100644
> --- a/getconf.c
> +++ b/getconf.c
> _AT_@ -33,6 +33,9 @@ main(int argc, char *argv[])
> /* ignore */
> EARGF(usage());
> break;
> + default:
> + usage();
> + break;
> } ARGEND
>
> if (argc == 1) {
> --
> 2.11.0
>

Applied. Thanks.
Received on Tue Jan 31 2017 - 19:32:01 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 31 2017 - 19:36:22 CET