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

From: Mattias Andrée <maandree_AT_kth.se>
Date: Fri, 27 Jan 2017 00:41:50 +0100

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
Received on Fri Jan 27 2017 - 00:41:50 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 27 2017 - 00:48:17 CET