commit | 8984bea4619a4d23fc87558042ab96485d520fea | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@osmocom.org> | Tue Dec 03 22:29:26 2019 +0100 |
committer | Harald Welte <laforge@osmocom.org> | Tue Dec 03 22:29:26 2019 +0100 |
tree | 757020d805c7140db4fb3562e3971b039fd17e54 | |
parent | ebbfbbdbc7e3afad39b316dcac9cc2da54c41122 [diff] [blame] |
exit(2) on unsupported positional arguments on command line Change-Id: I32f9565c649a149638878a7283ddd8407ddff1ed
diff --git a/src/osysmon_main.c b/src/osysmon_main.c index 07a065e..206246c 100644 --- a/src/osysmon_main.c +++ b/src/osysmon_main.c
@@ -197,6 +197,11 @@ break; } } + + if (argc > optind) { + fprintf(stderr, "Unsupported positional arguments on command line\n"); + exit(2); + } } static struct osmo_timer_list print_timer;