LSB function start_daemon() does not handle spaces in executable path

Bug #497033 reported by Anthony Dawson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: lsb-base

Ubuntu Release: Ubuntu 8.04.3 LTS
Package Version: 4.0-0ubuntu0.8.04.1

Calling:
start_daemon "/tmp/directory with spaces/daemon"

Error:
/sbin/start-stop-daemon: stat /tmp/directory: Not a directory (Not a directory)

Expected:
daemon "/tmp/directory with spaces/daemon" to start successfully

Fix:
Add quotes "" around uses of $exec in the function start_daemon in file /lib/lsb/init-functions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.