From 51724792900c58160c6fa60e2770265aedcf2a13 Mon Sep 17 00:00:00 2001 From: Chris Lawrence Date: Fri, 20 Mar 2009 11:40:50 -0500 Subject: [PATCH] lsb 3.2-22 Debian release. --- debian/changelog | 6 ++++++ init-functions | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index f4d39fa..08de077 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lsb (3.2-22) unstable; urgency=low + + * Fix quoting of $PWD in start-stop-daemon call. (Closes: #520499) + + -- Chris Lawrence Fri, 20 Mar 2009 11:40:50 -0500 + lsb (3.2-21) unstable; urgency=low * Provide lsb_release module for Python applications. (Closes: #486262) diff --git a/init-functions b/init-functions index f2da85f..ba7768a 100644 --- a/init-functions +++ b/init-functions @@ -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 } -- 2.30.2