From: Axel Beckert Date: Sat, 29 Dec 2012 02:03:23 +0000 (+0100) Subject: Add warnings about blanks in patterns and file names from STDIN X-Git-Tag: debian/1.01b-16~1 X-Git-Url: https://git.deb.at/w?p=pkg%2Fmmv.git;a=commitdiff_plain;h=0b0c71b9e52eac4f37b6af107b93fd3fdd5becc5 Add warnings about blanks in patterns and file names from STDIN Mitigates: #149873 --- diff --git a/debian/changelog b/debian/changelog index 7454d99..9430e11 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,8 @@ mmv (1.01b-16) UNRELEASED; urgency=low * Add slightly modified patch by Ulrich Eckhardt to provide better diagnostics for directory renaming (Closes: #584850) * Add examples section to man page (Closes: #380327) + * Add warnings about blanks in patterns and file names when reading + patterns from STDIN (Mitigates: #149873) * Rewrite debian/rules with oldstyle debhelper utilities + Use compat-level 9 + Add build-dependency on debhelper >= 9~ diff --git a/debian/patches/man-page-warning-149873.diff b/debian/patches/man-page-warning-149873.diff new file mode 100644 index 0000000..4f4815e --- /dev/null +++ b/debian/patches/man-page-warning-149873.diff @@ -0,0 +1,45 @@ +Description: Add warnings about #149873 to man page + This patch adds warnings about issues with spaces in patterns and + files when patterns are read from STDIN to the man page +Debian-Bug: 149873 +Author: Axel Beckert +Last-Update: 2012-12-29 + +Index: mmv/mmv.1 +=================================================================== +--- mmv.orig/mmv.1 2012-12-29 02:44:07.591288928 +0100 ++++ mmv/mmv.1 2012-12-29 02:56:01.425012596 +0100 +@@ -234,7 +234,7 @@ + i.e. "mmv \-mk" is allowed. + + .ce +-Multiple Pattern Pairs ++Multiple Pattern Pairs / Reading Patterns from STDIN + .PP + Multiple + .I from +@@ -277,6 +277,11 @@ + (even if it exists) + was already matched by the first pattern pair. + ++\fBWARNING:\fR This operation mode does \fBnot\fR work if the patterns ++itself contain \fBspaces\fR. See ++.I http://bugs.debian.org/149873 ++for details. ++ + .ce + The \fIFrom\fP Pattern + .PP +@@ -592,6 +597,12 @@ + Lines with "(*)" after the target pattern have the effect of enabling \-d + for the files matching this pattern only, + so that such deletions are done silently. ++ ++\fBWARNING:\fR This means that \fBunexpected things\fR may happen if ++\fBfiles\fR matched by the patterns contain \fBspaces\fR. See ++.I http://bugs.debian.org/149873 ++for details. ++ + When feeding + .I mmv + its own output, diff --git a/debian/patches/series b/debian/patches/series index 67439b4..bcb07fc 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ man-page-fixes.diff format-security.diff better-diagnostics-for-directories-584850.diff man-page-examples.diff +man-page-warning-149873.diff