Change in libosmo-sccp[master]: stp: exit(2) on unsupported positional arguments on command line

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.org
Tue Dec 17 14:12:42 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/16644 )

Change subject: stp: exit(2) on unsupported positional arguments on command line
......................................................................

stp: exit(2) on unsupported positional arguments on command line

Change-Id: I70390948943fe42469b8c6d63babc232e857e60c
---
M stp/stp_main.c
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/stp/stp_main.c b/stp/stp_main.c
index 3923ed2..19420c0 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -127,6 +127,11 @@
 			break;
 		}
 	}
+
+	if (argc > optind) {
+		fprintf(stderr, "Unsupported positional arguments in command line\n");
+		exit(2);
+	}
 }
 
 static void signal_handler(int signal)

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/16644
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I70390948943fe42469b8c6d63babc232e857e60c
Gerrit-Change-Number: 16644
Gerrit-PatchSet: 2
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/20191217/10c039e5/attachment.htm>


More information about the gerrit-log mailing list