From 14b153c1a4953e9beb52edc3cb464cabda77d861 Mon Sep 17 00:00:00 2001 From: psykose Date: Fri, 10 Jun 2022 11:02:29 +0000 Subject: 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 --- sh/start-stop-daemon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') 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} \ -- cgit v1.2.3