From 82a996b1cc5a4299674260962778fc2ad1f2f75e Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Wed, 17 Apr 2019 23:33:03 +0200 Subject: [PATCH] exigrep: do case sensitive option processing again. Closes 2392 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit -M (--related) was hidden by -m (--man), because of case insensitive option matching. (4.90 … 4.92 did case insensitive option processing) Thanks to Andreas Metzler for reporting this issue. --- doc/doc-txt/ChangeLog | 7 +++++++ src/src/exigrep.src | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 01ee17960..cf8c41a9f 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -70,6 +70,13 @@ HS/01 Bug 2390: Use message_id for tempfile creation to avoid races in a systems which restrict the file name length to lower values. (It was "hdr.$pid".) +HS/01 Bug 2390: Use message_id for tempfile creation to avoid races in a + shared (NFS) environment. + +HS/02 Bug 2392: exigrep does case sensitive *option* processing (as it + did for all versions <4.90). Notably -M, -m, --invert, -I may be + affected. + Exim version 4.92 ----------------- diff --git a/src/src/exigrep.src b/src/src/exigrep.src index 5db01fe08..afd3538b6 100644 --- a/src/src/exigrep.src +++ b/src/src/exigrep.src @@ -5,7 +5,7 @@ use strict; BEGIN { pop @INC if $INC[-1] eq '.' }; use Pod::Usage; -use Getopt::Long; +use Getopt::Long qw(:config no_ignore_case); use File::Basename; # Copyright (c) 2007-2017 University of Cambridge. @@ -354,7 +354,7 @@ Do not use a pager, even if STDOUT is connected to a terminal. =item B<-h>|B<--help> Print a short reference help. For more detailed help try L, -or C. +or C. =item B<-m>|B<--man> -- 2.25.1