]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/dbus-execute: don't trigger assertion if WorkingDirectory="" or "-"
authorMike Yuan <me@yhndnzj.com>
Sat, 25 May 2024 16:53:46 +0000 (00:53 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 26 May 2024 05:40:48 +0000 (13:40 +0800)
commit6f8ef80bb3ba5d244a428aee200c168e809a0079
tree363a311d5606b19bb44ea6d22a1484fb712ba87c
parentaf87bdc6bc0d5b50af87ffd3b5cbd3e7c472dd42
core/dbus-execute: don't trigger assertion if WorkingDirectory="" or "-"

Follow-up for 14631951cea807de2d482a430841c604c2040718

Before this commit, if WorkingDirectory= is empty or literally "-",
'simplified' is not populated, resulting in the ASSERT_PTR
in unit_write_settingf() below getting triggered.

Also, do not accept "-", so that the parser is consistent
with load-fragment.c

Fixes #33015
src/core/dbus-execute.c