summaryrefslogtreecommitdiff
path: root/src/shared/bus-wait-for-jobs.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-03 13:35:40 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-04-01 12:46:24 +0200
commit9e53c10a0f64bc1ab70877c245d5a8e08c509575 (patch)
treeea9f943a70e8b36df51d5d35e1ad79f549a067ef /src/shared/bus-wait-for-jobs.c
parent679b0b0a21cbc14cc226c83ebe94ab2844340bc3 (diff)
downloadsystemd-9e53c10a0f64bc1ab70877c245d5a8e08c509575.tar.gz
Flagsify EscapeStyle and make ESCAPE_BACKSLASH_ONELINE implicit
I want to tweak behaviour further, and that'll be easier when "style" is converted to a bitfield. Some callers used ESCAPE_BACKSLASH_ONELINE, and others not. But the ones that didn't, simply didn't care, because the argument was assumed to be one-line anyway (e.g. a service name). In environment-generator, this could make a difference. But I think it's better to escape the newlines there too. So newlines are now always escaped, to simplify the code and the test matrix.
Diffstat (limited to 'src/shared/bus-wait-for-jobs.c')
-rw-r--r--src/shared/bus-wait-for-jobs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bus-wait-for-jobs.c b/src/shared/bus-wait-for-jobs.c
index 51b71ecc2c..f325dd4e6d 100644
--- a/src/shared/bus-wait-for-jobs.c
+++ b/src/shared/bus-wait-for-jobs.c
@@ -181,7 +181,7 @@ static void log_job_error_with_service_result(const char* service, const char *r
assert(service);
- service_shell_quoted = shell_maybe_quote(service, ESCAPE_BACKSLASH);
+ service_shell_quoted = shell_maybe_quote(service, 0);
if (!strv_isempty((char**) extra_args)) {
_cleanup_free_ char *t;