Your message dated Sat, 03 Jun 2006 00:02:28 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#370075: fixed in lsb 3.1-8
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: lsb-base
Version: 3.1-6
Severity: important
Tags: patch
killproc() fails if the optional signal argument isn't supplied. There
are two problems here:
1) specified takes the value of either 0 or 1, both of which
evaluate to true when tested at line 111 using "if [ $specified ]".
2) Inside that block, it's then assumed that a signal argument was
passed, but sig will end up empty if that wasn't the case, resulting in
an error from start-stop-daemon.
The solution in the attached patch is to initialise specified to an
empty string, which evaluates to false and makes the test meaningful.
Secondly, after fiddling with sed, we fall back to setting sig to TERM
if it is still empty.
Tested briefly with both bash and dash.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-amd64-k8-smp
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Versions of packages lsb-base depends on:
ii ncurses-bin 5.5-2 Terminal-related programs and man
ii sed 4.1.5-1 The GNU sed stream editor
lsb-base recommends no packages.
-- no debconf information
--- /lib/lsb/init-functions 2006-06-02 04:19:47.000000000 +1000
+++ ./init-functions 2006-06-03 16:25:06.000000000 +1000
@@ -94,7 +94,7 @@
local pidfile sig status base i specified
set -- `POSIXLY_CORRECT=1 getopt "p:" $*`
pidfile=
- specified=0
+ specified=
for i in $*; do
case $i in
@@ -111,6 +111,7 @@
if [ $specified ]; then
sig=$(echo $2 | sed -e 's/^-\(.*\)/\1/')
sig=$(echo $sig | sed -e 's/^SIG\(.*\)/\1/')
+ sig=${sig:-TERM}
/sbin/start-stop-daemon --stop --pidfile "$pidfile" --signal $sig
--quiet --name "$base"
status="$?"
[ "$status" = 1 ] && return 3 # program is not running
--- End Message ---
--- Begin Message ---
Source: lsb
Source-Version: 3.1-8
We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive:
lsb-base_3.1-8_all.deb
to pool/main/l/lsb/lsb-base_3.1-8_all.deb
lsb-core_3.1-8_amd64.deb
to pool/main/l/lsb/lsb-core_3.1-8_amd64.deb
lsb-cxx_3.1-8_amd64.deb
to pool/main/l/lsb/lsb-cxx_3.1-8_amd64.deb
lsb-desktop_3.1-8_amd64.deb
to pool/main/l/lsb/lsb-desktop_3.1-8_amd64.deb
lsb-graphics_3.1-8_amd64.deb
to pool/main/l/lsb/lsb-graphics_3.1-8_amd64.deb
lsb-qt4_3.1-8_amd64.deb
to pool/main/l/lsb/lsb-qt4_3.1-8_amd64.deb
lsb-release_3.1-8_all.deb
to pool/main/l/lsb/lsb-release_3.1-8_all.deb
lsb_3.1-8.dsc
to pool/main/l/lsb/lsb_3.1-8.dsc
lsb_3.1-8.tar.gz
to pool/main/l/lsb/lsb_3.1-8.tar.gz
lsb_3.1-8_all.deb
to pool/main/l/lsb/lsb_3.1-8_all.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.
Chris Lawrence <[EMAIL PROTECTED]> (supplier of updated lsb 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: Sat, 3 Jun 2006 02:45:55 -0400
Source: lsb
Binary: lsb-desktop lsb-core lsb-cxx lsb-base lsb-release lsb-qt4 lsb
lsb-graphics
Architecture: source all amd64
Version: 3.1-8
Distribution: unstable
Urgency: low
Maintainer: Chris Lawrence <[EMAIL PROTECTED]>
Changed-By: Chris Lawrence <[EMAIL PROTECTED]>
Description:
lsb - Linux Standard Base 3.1 support package
lsb-base - Linux Standard Base 3.1 init script functionality
lsb-core - Linux Standard Base 3.1 core support package
lsb-cxx - Linux Standard Base 3.1 C++ support package
lsb-desktop - Linux Standard Base 3.1 Desktop support package
lsb-graphics - Linux Standard Base 3.1 graphics support package
lsb-qt4 - Linux Standard Base 3.1 Qt4 support package
lsb-release - Linux Standard Base version reporting utility
Closes: 370075
Changes:
lsb (3.1-8) unstable; urgency=low
.
* Fix killproc() to work if signal isn't specified; also fix the
pidfile check in both killproc() and pidofproc(). (Closes: #370075)
Files:
ca1ff7066632249dc56e7b9a1f08bfaa 603 misc extra lsb_3.1-8.dsc
917ead637836686410f14dff5dd860c5 36979 misc extra lsb_3.1-8.tar.gz
03c2fe4b8314ebde080249ab2ce6db79 9374 misc extra lsb_3.1-8_all.deb
a1a8b1304cbea3c869f560bbd18572d8 13660 misc required lsb-base_3.1-8_all.deb
105b507174f739240ce02dbbcaeb84cf 13820 misc extra lsb-release_3.1-8_all.deb
4cfec567d9c16d9b6828de3592f1d81a 29366 misc extra lsb-core_3.1-8_amd64.deb
c45efbf916d1ccf364c70f55f84a045a 9444 misc extra lsb-graphics_3.1-8_amd64.deb
5b439f263f1f466dff37cf77d6779420 9410 misc extra lsb-cxx_3.1-8_amd64.deb
576312d7ad75d033ec471431d1fc3be2 9490 misc extra lsb-desktop_3.1-8_amd64.deb
7358411496115d4a84e70c7c9de1771a 9394 misc extra lsb-qt4_3.1-8_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEgTBX2wQKE6PXubwRAm1fAJ9lV/6TRMXE5t9hMPY+ch2o6IpuUgCdGxRw
RH9rwYScZ4sclLS2VfhHciw=
=xWaI
-----END PGP SIGNATURE-----
--- End Message ---