Package: udev
Version: 0.141-1
Severity: serious

This was first discovered on Lenny, and I urge you to apply a fix
to the Lenny packages as well.

Debian Policy 10.4 mandates that #!/bin/sh scripts only use POSIX
(SUSv3) commands plus a number of listed extensions. Implementations
of it are (at least) bash, dash, mksh, posh, maybe ksh93 and/or zsh.

However, almost all of these shells implement more than the minimum
required for a /bin/sh by Policy. One example of this is that (at
least) bash and dash implement "printf" as a builtin (posh and mksh
don't).

The /etc/init.d/udev script uses printf, which is part of the Essen-
tial package coreutils, but resides in /usr/bin – which normally is
not a problem. But it also sets the PATH to /bin:/sbin which makes
this into a problem: due to being executed under "set -e", it aborts
under shells other than these implementing a printf builtin once it
is called, since /usr/bin/printf cannot be found.

An evil Würgaround would be to copy /usr/bin/printf to /bin/ (which
is possible if it only links against libraries from /lib/ but total-
ly non-standard), which is what I used for now to get my system to
boot correctly and be accessible via ssh again.

The correct fix would be to use the echo builtin as limited by the
Debian Policy description of it, I suppose.


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

Kernel: Linux 2.6.18-6-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages udev depends on:
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy
ii  libc6                         2.9-13     GNU C Library: Shared libraries
ii  libselinux1                   2.0.71-1   SELinux shared libraries
ii  libvolume-id1                 0.141-1    libvolume_id shared library
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip

udev recommends no packages.

udev suggests no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to