From c64b2415d326f21119399b76549ef9de3195b538 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 15 Feb 2018 16:15:46 +0100 Subject: [PATCH] init-repo: complain about non-option arguments otherwise abuse may go unnoticed (at this stage ...). Change-Id: Ic8c2a843a941cdeb2d69542830eccf7fadcf252d Reviewed-by: Edward Welbourne --- init-repository | 1 + 1 file changed, 1 insertion(+) diff --git a/init-repository b/init-repository index 11a75ffd..875aec2b 100755 --- a/init-repository +++ b/init-repository @@ -243,6 +243,7 @@ sub parse_arguments $self->{'mirror-url'} = $OSLO_MIRROR_URL_BASE; }, ) || printUsage(2); + @ARGV && printUsage(2); # Replace any double trailing slashes from end of mirror $self->{'mirror-url'} =~ s{//+$}{/};