Package: netpbm
Version: 2:10.0-12
Severity: normal
Tags: patch
File: /usr/bin/pnmindex

pnmindex can't handle space in file-names. The following patch solves
the problem:

-------------------------------------------------------------------------------
--- pnmindex.orig       2008-06-01 14:55:13.000000000 +0200
+++ pnmindex    2008-08-19 23:32:30.000000000 +0200
@@ -108,7 +108,8 @@
 
 for i in "$@"; do
 
-    description=(`pnmfile $i`)
+    cp "$i" $tmpfile
+    description=(`pnmfile $tmpfile`)
 
     format=${description[1]}
     width=${description[3]}
@@ -119,10 +120,8 @@
         exit $?
     fi
 
-    if [ $width -le $size ] && \
-       [ $height -le $size ]; then
-        cat $i > $tmpfile
-    else
+    if [ $width -gt $size ] || \
+       [ $height -gt $size ]; then
         case $format in
 
         PBM) 
-------------------------------------------------------------------------------

/ Anders

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (51, 'testing-proposed-updates'), (50, 
'unstable'), (40, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.7
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to sv_SE.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages netpbm depends on:
ii  libc6                  2.7-13            GNU C Library: Shared libraries
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libnetpbm10            2:10.0-12         Shared libraries for netpbm
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libtiff4               3.8.2-10          Tag Image File Format (TIFF) libra
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages netpbm recommends:
ii  ghostscript-x [gs-aladdin] 8.62.dfsg.1-3 The GPL Ghostscript PostScript/PDF

netpbm suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to