]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: propagate errors about invalid aliases and such too
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Mar 2022 10:03:41 +0000 (11:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:56 +0000 (16:17 +0200)
commitcbfdbffb618f1d75e668c59887a27c7a60950546
treefa91588536dd4667153dcefbaf1ca68edbfd30ea
parent32450f5348c03262f3257af328b6547cbfba5859
shared/install: propagate errors about invalid aliases and such too

If an invalid arg appears in [Install] Alias=, WantedBy=, RequiredBy=,
we'd warn in the logs, but not propagate this information to the caller,
and in particular not over dbus. But if we call "systemctl enable" on a
unit, and the config if invalid, this information is quite important.
src/basic/unit-file.c
src/basic/unit-file.h
src/shared/install.c
src/shared/install.h
src/test/test-install-root.c
src/test/test-unit-file.c