commit d301322cf28d94b8a90afe747dde9b1e0f1a3821
parent 9ab1478f1eb6a9a355d394af3c0cfa69850245fe
Author: Mattias Andrée <maandree@kth.se>
Date: Fri, 27 Jan 2017 00:41:50 +0100
getconf: fail if any other flag than -v is used
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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) {