commit d301322cf28d94b8a90afe747dde9b1e0f1a3821
Author:     Mattias Andrée <[email protected]>
AuthorDate: Fri Jan 27 00:41:50 2017 +0100
Commit:     Evan Gates <[email protected]>
CommitDate: Tue Jan 31 10:27:59 2017 -0800

    getconf: fail if any other flag than -v is used
    
    Signed-off-by: Mattias Andrée <[email protected]>

diff --git a/getconf.c b/getconf.c
index e611659..d927f2d 100644
--- a/getconf.c
+++ b/getconf.c
@@ -33,6 +33,9 @@ main(int argc, char *argv[])
                /* ignore */
                EARGF(usage());
                break;
+       default:
+               usage();
+               break;
        } ARGEND
 
        if (argc == 1) {

Reply via email to