summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2000-12-31 05:12:44 +0000
committerAdam Heath <doogie@debian.org>2000-12-31 05:12:44 +0000
commite83c5b70e433ec12ac1d9c6b5a742d3bfb58a2c7 (patch)
tree449034628057c91cd83846171c4788ee97d5b2e1 /utils
parent9b77d09f9373c7503ef4361cc7a8505b47993260 (diff)
downloaddpkg-e83c5b70e433ec12ac1d9c6b5a742d3bfb58a2c7.tar.gz
utils/start-stop-daemon.c: --name is now allowed on the command line
(imported from branch v1_8).
Diffstat (limited to 'utils')
-rw-r--r--utils/start-stop-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/start-stop-daemon.c b/utils/start-stop-daemon.c
index 067a6b558..7906620f8 100644
--- a/utils/start-stop-daemon.c
+++ b/utils/start-stop-daemon.c
@@ -348,8 +348,8 @@ parse_options(int argc, char * const *argv)
if (start == stop)
badusage("need one of --start or --stop");
- if (!execname && !pidfile && !userspec)
- badusage("need at least one of --exec, --pidfile or --user");
+ if (!execname && !pidfile && !userspec && !cmdname)
+ badusage("need at least one of --exec, --pidfile, --user or --name");
if (!startas)
startas = execname;