[exim-dev] [Bug 2992] New: -i broken exiqgrep

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: admin
Fecha:  
A: exim-dev
Asunto: [exim-dev] [Bug 2992] New: -i broken exiqgrep
https://bugs.exim.org/show_bug.cgi?id=2992

            Bug ID: 2992
           Summary: -i broken exiqgrep
           Product: Exim
           Version: 4.95
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Exigrep
          Assignee: unallocated@???
          Reporter: eximist@???
                CC: exim-dev@???


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.