lsb 3.1-10 Debian release.
authorChris Lawrence <lawrencc@debian.org>
Mon, 5 Jun 2006 20:00:17 +0000 (16:00 -0400)
committerDidier Raboud <odyx@debian.org>
Mon, 5 Jun 2006 20:00:17 +0000 (16:00 -0400)
debian/changelog
init-functions

index c0fd22c85f76b9f513f3335feda4573d1167887e..a7ed06b98db13a7a8e15957b6803c9351df9a53c 100644 (file)
@@ -1,3 +1,9 @@
+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)
index c606799f357f06fc12e5984862dde7f4716cb596..07727ce4f93d4b8683b39efa9ee3fa351fe03c63 100644 (file)
@@ -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}