Change in osmo-hlr[master]: hlr: 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 3 21:17:04 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/16454 )


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

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

Change-Id: I0c2738d380a7e79622fb3db2062c17782555e82d
---
M src/hlr.c
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/54/16454/1

diff --git a/src/hlr.c b/src/hlr.c
index a71b7e1..c3737d5 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -792,6 +792,11 @@
 			break;
 		}
 	}
+
+	if (argc > optind) {
+		fprintf(stderr, "Unsupported positional arguments on command line\n");
+		exit(2);
+	}
 }
 
 static void signal_hdlr(int signal)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/16454
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I0c2738d380a7e79622fb3db2062c17782555e82d
Gerrit-Change-Number: 16454
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191203/9d66d108/attachment.htm>


More information about the gerrit-log mailing list