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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: admin
Data:  
Para: exim-dev
Temas novos: [exim-dev] [Bug 2980] exiqgrep -i broken
Asunto: [exim-dev] [Bug 2980] New: exiqgrep -i broken
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: unallocated@???
          Reporter: doug@???
                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.