Your message dated Thu, 04 Aug 2011 04:02:20 +0000
with message-id <[email protected]>
and subject line Bug#636403: fixed in xpdf 3.02-21
has caused the Debian Bug report #636403,
regarding xpdf: -m does not handle backslash in file names
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
636403: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636403
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xpdf
Version: 3.02-20
Severity: normal
Tags: patch

Because the "echo" and "read" commands interpret the backslash as a
special character, the xpdf wrapper doesn't correctly handle backslash
in file names after the -m option.

The attached patch correct this:

* many="$many\n$1" is replaced by many=$(printf "%s\n%s" "$many" "$1")
  to add a real newline character.

* echo "$many" is replaced by printf "%s\n" "$many" to avoid backslash
  being regarded as a special character.

* The -r read option (specified by POSIX) has been added for the same
  purpose.

Note: a newline in a filename is not handled correctly, but to handle
it, one would need to output null byte terminated file names to a
temporary file and use xargs -0 -n 1 (unfortunately, neither bash
not dash can handle null bytes in parameters, that's why a temporary
file would be needed).

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages xpdf depends on:
ii  lesstif2                      1:0.95.2-1 OSF/Motif 2.1 implementation relea
ii  libc6                         2.13-13    Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.6.1-5  GCC support library
ii  libpoppler13                  0.16.7-2   PDF rendering library
ii  libstdc++6                    4.6.1-5    GNU Standard C++ Library v3
ii  libx11-6                      2:1.4.4-1  X11 client-side library
ii  libxt6                        1:1.1.1-2  X11 toolkit intrinsics library

Versions of packages xpdf recommends:
ii  gsfonts-x11                   0.22       Make Ghostscript fonts available t
ii  poppler-data                  0.4.4-1    Encoding data for the poppler PDF 
ii  poppler-utils                 0.16.7-2   PDF utilities (based on Poppler)

xpdf suggests no packages.

-- no debconf information
--- /usr/bin/xpdf       2011-07-31 09:57:48.000000000 +0200
+++ xpdf        2011-08-02 23:52:11.000000000 +0200
@@ -33,7 +33,7 @@
         while [ "$#" -gt "0" ]; do
             case "$1" in
                 -*) break ;;
-                *) many="$many\n$1" ;;
+                *) many=$(printf "%s\n%s" "$many" "$1") ;;
             esac
             shift
         done
@@ -49,7 +49,7 @@
 
 test "$title" != "" || title="Xpdf: $file"
 if [ "$many" != "" ]; then
-    echo "$many" | while read file; do
+    printf "%s\n" "$many" | while read -r file; do
         test ! -f "$file" || $0 "$file" &
     done
 elif [ "$file" = "" ]; then

--- End Message ---
--- Begin Message ---
Source: xpdf
Source-Version: 3.02-21

We believe that the bug you reported is fixed in the latest version of
xpdf, which is due to be installed in the Debian FTP archive:

xpdf_3.02-21.debian.tar.gz
  to main/x/xpdf/xpdf_3.02-21.debian.tar.gz
xpdf_3.02-21.dsc
  to main/x/xpdf/xpdf_3.02-21.dsc
xpdf_3.02-21_amd64.deb
  to main/x/xpdf/xpdf_3.02-21_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Gilbert <[email protected]> (supplier of updated xpdf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 03 Aug 2011 22:55:26 -0400
Source: xpdf
Binary: xpdf
Architecture: source amd64
Version: 3.02-21
Distribution: unstable
Urgency: low
Maintainer: Michael Gilbert <[email protected]>
Changed-By: Michael Gilbert <[email protected]>
Description: 
 xpdf       - Portable Document Format (PDF) reader
Closes: 636403 636432 636449
Changes: 
 xpdf (3.02-21) unstable; urgency=low
 .
   * Pass real file name when not compressed (closes: #636432).
   * Handle backslashes in filenames with -m option (closes: #636403).
   * Document quirks of -m (closes: #636449).
   * Pass all arguments in -m option.
Checksums-Sha1: 
 cfdb9bc474a793441ce2fe3c60d93a890b8284a5 2579 xpdf_3.02-21.dsc
 5231b08e677d2464079640ab67edd4ffe6c47a8f 37693 xpdf_3.02-21.debian.tar.gz
 f7fdc6226db94056279b97e45df2ad02e18a8c45 178018 xpdf_3.02-21_amd64.deb
Checksums-Sha256: 
 36154b2fedb15217920b71784adc9ca9280426812139c0205818a4be9cf438f0 2579 
xpdf_3.02-21.dsc
 9da15c616ff5823dfcb3d026e5e0e75258c1d0783b475c530b8508f14d0ad7da 37693 
xpdf_3.02-21.debian.tar.gz
 fe25fca70f94a8934f97bccb306b1c79c0c6abdfd9524db45bc71717d4602dab 178018 
xpdf_3.02-21_amd64.deb
Files: 
 307faca84d821a73708e91ca2ee81387 2579 text optional xpdf_3.02-21.dsc
 97d0137fff95c78c9c839220e78a3a27 37693 text optional xpdf_3.02-21.debian.tar.gz
 d05bf4458b2d79c1cdd7951036e37218 178018 text optional xpdf_3.02-21_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQQcBAEBCAAGBQJOOhhMAAoJELjWss0C1vRzA0gf/1S7kFeWtfoaZPMZaujmevHE
B2sJJoXngRki/lUos/dEreX6t0LnmI+e2cP0OsombWQ7WwWmetfzvxi1y59wdUxM
zyJBqkYYBkzm6M6EJeLwZq58AH8SBvAyLXEAix8bUd/RVnzmBBhzRpo9noU8DuY9
S9/nfMgaphLhT/XtSdILkps6WzXYzhHIbSOaou7yWtkMtHDDkXd20SkaQLAJwbk6
KodMogrZPpRhGpXUfD13aSL2BSBDKCzdyglfzOerM5g1P6PaPctI2QEiJUSRe25E
a7Pj4i3C98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j/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to