[exim-dev] [Bug 1586] exiqgrep silently ignores extra argume…

Góra strony
Delete this message
Reply to this message
Autor: admin
Data:  
Dla: exim-dev
Stare tematy: [exim-dev] [Bug 1586] New: exiqgrep silently ignores extra arguments
Temat: [exim-dev] [Bug 1586] exiqgrep silently ignores extra arguments
https://bugs.exim.org/show_bug.cgi?id=1586

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???


--- Comment #1 from Git Commit <git@???> ---
Git commit:
http://git.exim.org/exim.git/commitdiff/a0f38e054037eee3ec02df8868bf38e11adb6c0e

commit a0f38e054037eee3ec02df8868bf38e11adb6c0e
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Oct 17 20:47:46 2015 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Sat Oct 17 20:49:59 2015 +0100


    Utils: exiqgrep error/usage if there are non-understood arguments.  Bug
1586
---
 src/src/exiqgrep.src | 1 +
 1 file changed, 1 insertion(+)


diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src
index afecbff..2c52f13 100644
--- a/src/src/exiqgrep.src
+++ b/src/src/exiqgrep.src
@@ -44,6 +44,7 @@ if ($^O eq 'darwin') { # aka MacOS X
};

getopts('hf:r:y:o:s:C:zxlibRca',\%opt);
+if ($ARGV[0]) { &help; exit;}
if ($opt{h}) { &help; exit;}
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.