From df618101a5ea15dc90c4a2968798ef2be9dba16f Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 18 Oct 2021 11:01:47 +0100 Subject: [PATCH] Exiqgrep: check arg parsing. Bug 2821 --- src/exiqgrep.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exiqgrep.src b/src/exiqgrep.src index c8762df47..04602da68 100644 --- a/src/exiqgrep.src +++ b/src/exiqgrep.src @@ -53,7 +53,7 @@ if ($ARGV[0] eq '--version') { exit 0; } -getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt); +if (!getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt) { &help; exit;} if ($ARGV[0]) { &help; exit;} if ($opt{h}) { &help; exit;} if ($opt{a}) { $eargs = '-bp'; } -- 2.34.1