Your message dated Mon, 25 Jun 2007 16:02:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#340219: fixed in debianutils 2.21.1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: debianutils
Version: 2.15.1
Severity: important
File: /bin/which
Tags: patch
Hi,
On my system /bin/sh points to ksh, which doesn't provide the printf
builtin unlike bash does. So the /bin/which command calls /usr/bin/printf,
which may not be available at the boot time if /usr hasn't been mounted yet.
For the real time example of the bug see /etc/rcS.d/S30procps.sh script,
which calls `which' and runs just before the /etc/rcS.d/S35mountall.sh
I would suggest using good, old echo istead of printf. The attached patch
implements this.
Best regards,
robert
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/pdksh
Kernel: Linux 2.6.14
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Versions of packages debianutils depends on:
ii coreutils 5.93-5 The GNU core utilities
ii libc6 2.3.5-8 GNU C Library: Shared libraries an
debianutils recommends no packages.
-- no debconf information
--- which.orig 2005-11-04 02:51:05.000000000 +0100
+++ which 2005-11-21 21:38:09.000000000 +0100
@@ -7,7 +7,7 @@
do
case "$whichopts" in
a) ALLMATCHES=1 ;;
- ?) printf "Usage: %s [-a] args\n" $0 ; exit 2 ;;
+ ?) echo "Usage: $0 [-a] args\n" 1>&2 ; exit 2 ;;
esac
done
shift $(($OPTIND - 1))
@@ -28,7 +28,7 @@
case $PROGRAM in
*/*)
if [ -f "$PROGRAM" ] && [ -x "$PROGRAM" ]; then
- printf '%s\n' "$PROGRAM"
+ echo "$PROGRAM"
RET=0
fi
;;
@@ -38,7 +38,7 @@
ELEMENT=.
fi
if [ -f "$ELEMENT/$PROGRAM" ] && [ -x "$ELEMENT/$PROGRAM" ]; then
- printf '%s\n' "$ELEMENT/$PROGRAM"
+ echo "$ELEMENT/$PROGRAM"
RET=0
[ "$ALLMATCHES" -eq 1 ] || break
fi
--- End Message ---
--- Begin Message ---
Source: debianutils
Source-Version: 2.21.1
We believe that the bug you reported is fixed in the latest version of
debianutils, which is due to be installed in the Debian FTP archive:
debianutils_2.21.1.dsc
to pool/main/d/debianutils/debianutils_2.21.1.dsc
debianutils_2.21.1.tar.gz
to pool/main/d/debianutils/debianutils_2.21.1.tar.gz
debianutils_2.21.1_i386.deb
to pool/main/d/debianutils/debianutils_2.21.1_i386.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.
Clint Adams <[EMAIL PROTECTED]> (supplier of updated debianutils 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: SHA1
Format: 1.7
Date: Mon, 25 Jun 2007 10:46:09 -0400
Source: debianutils
Binary: debianutils
Architecture: source i386
Version: 2.21.1
Distribution: unstable
Urgency: low
Maintainer: Clint Adams <[EMAIL PROTECTED]>
Changed-By: Clint Adams <[EMAIL PROTECTED]>
Description:
debianutils - Miscellaneous utilities specific to Debian
Closes: 340219
Changes:
debianutils (2.21.1) unstable; urgency=low
.
* which: patch from Thorsten Glaser to use 'print' when $KSH_VERSION
is set (thus implying a Korn shell). closes: #340219.
Files:
c901d1df0ae0d1928922d7fd69931b87 484 utils required debianutils_2.21.1.dsc
be3f86675ddd2c3772ecb0cff531f523 135746 utils required
debianutils_2.21.1.tar.gz
857c22d5c3ce53ededa7fc6c80672057 53056 utils required
debianutils_2.21.1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Debian!
iD8DBQFGf+S35m0u66uWM3ARAiyOAKCI1YKJ8HEA+YddUerVQbUTY1brFQCgsYtw
hKbLEEYPLS94E4l+pzg2DJE=
=RBzI
-----END PGP SIGNATURE-----
--- End Message ---