aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-06-10 11:02:29 +0000
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-07-03 12:40:34 -0500
commit14b153c1a4953e9beb52edc3cb464cabda77d861 (patch)
tree3e073901bd55fac2e3f1c31035c0b366e78da636
parent3cc4c014853b2498d218f3c4718058da7d368236 (diff)
fix quoting of loggers in start-stop-daemon
previously broken in 6034866d1c74d5a23eb9f3e0ebf40c9d278aac93 caused *_logger options to be passed unquoted, so `error_logger="logger -t .."` would pass -t to s-s-d and fail to start the service. Fixes: #531
-rw-r--r--sh/start-stop-daemon.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh
index cbfd1ca8..90c2b6d7 100644
--- a/sh/start-stop-daemon.sh
+++ b/sh/start-stop-daemon.sh
@@ -47,8 +47,8 @@ ssd_start()
${directory:+--chdir} $directory \
${output_log+--stdout} $output_log \
${error_log+--stderr} $error_log \
- ${output_logger:+--stdout-logger} "$output_logger" \
- ${error_logger:+--stderr-logger} "$error_logger" \
+ ${output_logger:+--stdout-logger \"$output_logger\"} \
+ ${error_logger:+--stderr-logger \"$error_logger\"} \
${capabilities+--capabilities} "$capabilities" \
${secbits:+--secbits} "$secbits" \
${no_new_privs:+--no-new-privs} \