+lsb (3.1-10) unstable; urgency=low
+
+ * Quote tests of $specified. (Closes: #370256)
+
+ -- Chris Lawrence <lawrencc@debian.org> Mon, 5 Jun 2006 16:00:17 -0400
+
lsb (3.1-9) unstable; urgency=high
* Add missing < "$pidfile" to read in pidofproc(). (Closes: #370155)
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
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}