Comment 4 for bug 1966923

Revision history for this message
In , Git-p (git-p) wrote :

Git commit: https://git.exim.org/exim.git/commitdiff/df618101a5ea15dc90c4a2968798ef2be9dba16f

commit df618101a5ea15dc90c4a2968798ef2be9dba16f
Author: Jeremy Harris <email address hidden>
AuthorDate: Mon Oct 18 11:01:47 2021 +0100
Commit: Jeremy Harris <email address hidden>
CommitDate: Mon Oct 18 11:01:47 2021 +0100

    Exiqgrep: check arg parsing. Bug 2821
---
 src/src/exiqgrep.src | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src
index c8762df..04602da 100644
--- a/src/src/exiqgrep.src
+++ b/src/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'; }