[Pkg-cups-devel] Bug#414299: /usr/lib/cups/filter/pdftops: pdftops filter fails when reading data from stdin

Speziale Ettore speziale.arbosto at gmail.com
Sat Mar 10 18:57:33 CET 2007


Package: cupsys
Version: 1.1.23-10sarge1
Severity: normal
File: /usr/lib/cups/filter/pdftops

pdftops when it receive data from stdin first try to save the whole
stream to disc. This operation fails (Permission error):

1- I have thinked that $tmpfile var has a bad value. The builed path is:
   /var/spool/cups/tmppdfin.45.tmp
   I have edit the line, adding a /:
   /var/spool/cups/tmp/pdfin.45.tmp
2- This don't fix the problem. On the next operation
   open(TEMP, ...)
   the script fails (No such file or directory)

I have thinked that this is a permission error, so i have changed
$tmpfile var to "/tmp/pdftemp". Same problem.

I have also tryed to create "by hand" the file (touch /tmp/pdftemp &&
chmod a+rw /tmp/pdftemp) and the script fails in another point (it
fails on copy(STDIN, TEMP)). The reported error is "No such file or
directory".

My filter, that produces pdftops input is

#!/bin/bash
ps2pdf $6 -

It is executed as first filter and so physically read data from $6 file

After the "wrong filter" pdftops the next filter read an empty file and
so the printer don't print nothing.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=it_IT at euro (charmap=ISO-8859-15)

Versions of packages cupsys depends on:
ii  adduser               3.63               Add and remove users and groups
ii  debconf               1.4.30.13          Debian configuration management sy
ii  libc6                 2.3.2.ds1-22sarge5 GNU C Library: Shared libraries an
ii  libcupsimage2         1.1.23-10sarge1    Common UNIX Printing System(tm) - 
ii  libcupsys2-gnutls10   1.1.23-10sarge1    Common UNIX Printing System(tm) - 
ii  libgnutls11           1.0.16-13.2sarge2  GNU TLS library - runtime library
ii  libpam0g              0.76-22            Pluggable Authentication Modules l
ii  libpaper1             1.1.14-3           Library for handling paper charact
ii  libslp1               1.0.11a-2          OpenSLP libraries
ii  patch                 2.5.9-2            Apply a diff file to an original
ii  perl-modules          5.8.4-8sarge5      Core Perl modules
ii  xpdf-utils            3.00-13.6          Portable Document Format (PDF) sui
ii  zlib1g                1:1.2.2-4.sarge.2  compression library - runtime

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: ipp, lpd, parallel, socket, usb




More information about the Pkg-cups-devel mailing list