From: Chris Lawrence Date: Mon, 5 Jun 2006 20:00:17 +0000 (-0400) Subject: lsb 3.1-10 Debian release. X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~241 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0dcba5ba92fd7a391ac9f44e2362eab1e12224c7;p=lsb.git lsb 3.1-10 Debian release. --- diff --git a/debian/changelog b/debian/changelog index c0fd22c..a7ed06b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lsb (3.1-10) unstable; urgency=low + + * Quote tests of $specified. (Closes: #370256) + + -- Chris Lawrence Mon, 5 Jun 2006 16:00:17 -0400 + lsb (3.1-9) unstable; urgency=high * Add missing < "$pidfile" to read in pidofproc(). (Closes: #370155) diff --git a/init-functions b/init-functions index c606799..07727ce 100644 --- a/init-functions +++ b/init-functions @@ -79,7 +79,7 @@ pidofproc () { else return 2 # program is dead and /var/run pid file exists fi - elif [ -x /bin/pidof -a ! $specified ]; then + elif [ -x /bin/pidof -a ! "$specified" ]; then /bin/pidof -o %PPID $1 status="$?" [ "$status" = 1 ] && return 3 # program is not running @@ -108,7 +108,7 @@ killproc () { pidfile=/var/run/$base.pid fi - if [ $specified ]; then + if [ "$specified" ]; then sig=$(echo ${2:-} | sed -e 's/^-\(.*\)/\1/') sig=$(echo $sig | sed -e 's/^SIG\(.*\)/\1/') sig=${sig:-TERM}