Package: lsb-base
Version: 3.2-16
Severity: grave
There is a bashism in /usr/lib/init-functions that breaks some init
scripts. For example checkroot.sh breaks when system is running on
battery power in log_warning_msg, this causes root fs munted read-only,
this also cases strange bugs after. So severity is grave.
The problem is that log_warning_msg does the following call:
log_end_msg -1
log_end_msg contains at the end of the function:
return $1
this gives:
return -1
That works in bash and zsh, for example. But it does not work with dash.
IEEE Std 1003.1, 2004 Edition says this about return built-in:
EXIT STATUS
The value of the special parameter '?' shall be set to n, an
_unsigned_ decimal integer, or to the exit status of the last
command executed if n is not specified....
(see http://www.opengroup.org/onlinepubs/000095399/utilities/return.html)
So dash is posix-compliant. Problem can be solved by using 255 instead
of -1.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27-rc1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lsb-base depends on:
ii ncurses-bin 5.6+20080713-1 terminal-related programs and man
ii sed 4.1.5-8 The GNU sed stream editor
lsb-base recommends no packages.
lsb-base suggests no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]