Package: gzip
Version: 1.3.12-2
Followup-For: Bug #429462

/bin/gunzip is broken in environments, where $PATH does not include
/bin. For me that is while using "bsmtpd" (Batched SMTP Daemon, no
longer in Debian >=etch), since the UUCP Execution Daemon "uuxqt" only
allows a very limited list of programs to be execute remotely via UUCP.

The culprit is: /bin/gunzip
        #!/bin/sh
        PATH=${GZIP_BINDIR-'/usr/bin'}:$PATH
                            ^^^^
        exec gzip -d "$@"

Looking at the package content shows:
        $ dpkg -c gzip_1.3.12-2_i386.deb
        ...
        -rwxr-xr-x root/root        65 2007-06-14 06:19 ./bin/gunzip
        -rwxr-xr-x root/root     53868 2007-06-14 06:19 ./bin/gzip

Since there is no "gzip" in "/usr/bin/", but in "/bin/", this fails!
        $ PATH= /bin/gunzip
        /bin/gunzip: line 3: exec: gzip: not found

Removing the "/usr" prefix solves this:
        $ PATH= /bin/gunzip
        gzip: compressed data not read from a terminal. Use -f to force 
decompression.

I don't know if this is the fault for "dpkg-source -x" failing also, but
it would likely think so. If not, please clone this report.

Please fix this ASAP, since this bug causes data loss! Luckily bsmtpd by
default does do backups of those emails and I was able to recover them.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (989, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.5-laptop (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gzip depends on:
ii  debianutils                   2.21       Miscellaneous utilities specific t
ii  libc6                         2.5-11     GNU C Library: Shared libraries

gzip recommends no packages.

-- no debconf information


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

Reply via email to