https://bugs.exim.org/show_bug.cgi?id=2980
Bug ID: 2980 Summary: exiqgrep -i broken Product: Exim Version: N/A Hardware: All OS: Linux Status: NEW Severity: bug Priority: medium Component: Exigrep Assignee: unalloca...@exim.org Reporter: d...@sbscomp.com CC: exim-dev@exim.org Commit 42ed39da breaks exiqgrep -i by failing to check for the parameter and exiting immediately when -i is provided as an option. The following patch fixes the issue: diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index 0661c5792..3fa16a352 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -57,7 +57,7 @@ if ($ARGV[0] eq '--version') { if (!getopts('hf:r:y:o:s:C:zxlibRcaG:E:',\%opt)) { &help; exit; } if ($opt{h}) { &help; exit; } -if ($ARGV[0] || !($opt{f} || $opt{r} || $opt{s} || $opt{y} || $opt{o} || $opt{z} || $opt{x} || $opt{c})) +if ($ARGV[0] || !($opt{f} || $opt{r} || $opt{s} || $opt{y} || $opt{o} || $opt{z} || $opt{x} || $opt{c} || $opt{i})) { &help; exit(1); } if ($opt{a}) { $eargs = '-bp'; } if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; } -- You are receiving this mail because: You are on the CC list for the bug. -- ## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##