diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-05-25 18:49:09 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-05-26 07:40:48 +0200 |
commit | af87bdc6bc0d5b50af87ffd3b5cbd3e7c472dd42 (patch) | |
tree | 0971245912a50d0d13b5eb9b264d7c1e71800b72 /src | |
parent | core/load-fragment: also clear missing_ok when WorkingDirectory="" (diff) | |
download | systemd-af87bdc6bc0d5b50af87ffd3b5cbd3e7c472dd42.tar.xz systemd-af87bdc6bc0d5b50af87ffd3b5cbd3e7c472dd42.zip |
core/dbus-execute: use correct char for representing WorkingDirectory=home
Diffstat (limited to 'src')
-rw-r--r-- | src/core/dbus-execute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index e907aa67af..e55fb6ee16 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -2755,7 +2755,7 @@ int bus_exec_context_set_transient_property( c->working_directory_home = is_home; c->working_directory_missing_ok = missing_ok; - unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "WorkingDirectory=%s%s", missing_ok ? "-" : "", c->working_directory_home ? "+" : ASSERT_PTR(c->working_directory)); + unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "WorkingDirectory=%s%s", missing_ok ? "-" : "", c->working_directory_home ? "~" : ASSERT_PTR(c->working_directory)); } return 1; |