lsb 3.2-22 Debian release.
authorChris Lawrence <lawrencc@debian.org>
Fri, 20 Mar 2009 16:40:50 +0000 (11:40 -0500)
committerDidier Raboud <odyx@debian.org>
Fri, 20 Mar 2009 16:40:50 +0000 (11:40 -0500)
debian/changelog
init-functions

index f4d39faef8f90f2de73b24a7502c9fe8983e458d..08de07776d182b6ab8fc317a995f95a94f534efe 100644 (file)
@@ -1,3 +1,9 @@
+lsb (3.2-22) unstable; urgency=low
+
+  * Fix quoting of $PWD in start-stop-daemon call.  (Closes: #520499)
+
+ -- Chris Lawrence <lawrencc@debian.org>  Fri, 20 Mar 2009 11:40:50 -0500
+
 lsb (3.2-21) unstable; urgency=low
 
   * Provide lsb_release module for Python applications.  (Closes: #486262)
index f2da85f4fcee8eb907e9ca2bf0b9ba44b103d300..ba7768a5053c4090681df67848f1c716ad04fc83 100644 (file)
@@ -49,13 +49,13 @@ start_daemon () {
 
     exec="$1"; shift
 
-    args="--start --chdir '$PWD' --nicelevel $nice --quiet --oknodo"
+    args="--start --nicelevel $nice --quiet --oknodo"
     if [ $force = 1 ]; then
-        /sbin/start-stop-daemon $args --startas $exec --pidfile /dev/null -- "$@"
+        /sbin/start-stop-daemon $args --chdir "$PWD" --startas $exec --pidfile /dev/null -- "$@"
     elif [ $pidfile ]; then
-        /sbin/start-stop-daemon $args --exec $exec --oknodo --pidfile "$pidfile" -- "$@"
+        /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec --oknodo --pidfile "$pidfile" -- "$@"
     else
-        /sbin/start-stop-daemon $args --exec $exec -- "$@"
+        /sbin/start-stop-daemon $args --chdir "$PWD" --exec $exec -- "$@"
     fi
 }