This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/16450 )
Change subject: exit(2) on unsupported positional arguments on command line
......................................................................
exit(2) on unsupported positional arguments on command line
Change-Id: I701e6bffbfdfc98ff09b1d824e7707ef5a8b8059
---
M src/cbc_main.c
1 file changed, 5 insertions(+), 0 deletions(-)
Approvals:
pespin: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/src/cbc_main.c b/src/cbc_main.c
index d5d5296..d60621c 100644
--- a/src/cbc_main.c
+++ b/src/cbc_main.c
@@ -131,6 +131,11 @@
break;
}
}
+
+ if (argc > optind) {
+ fprintf(stderr, "Unsupported positional arguments on command line\n");
+ exit(2);
+ }
}
static void signal_handler(int signal)
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/16450
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I701e6bffbfdfc98ff09b1d824e7707ef5a8b8059
Gerrit-Change-Number: 16450
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191204/f99d81a1/attachment.htm>