install: fail early if specifier expansion failed
authorDavid Tardon <dtardon@redhat.com>
Tue, 21 Feb 2023 13:10:33 +0000 (14:10 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 Feb 2023 18:39:07 +0000 (18:39 +0000)
commitf8979e869812988835f6951fb73a68e30a4c608c
tree46169b245e30d91c846cee869333706368b6971f
parent6c53840958e8148f411d2c8dab9274f3b0dde699
install: fail early if specifier expansion failed

Before:

systemd[1]: Assertion 'path' failed at src/shared/install.c:288, function install_changes_add(). Aborting.
systemd[1]: Caught <ABRT> from our own process.
systemd[1]: Caught <ABRT>, dumped core as pid 2525.
systemd[1]: Freezing execution

After:

Failed to enable unit: Invalid specifier in user-%J.service

Fixes #26467.

Follow-up for: f5a0162
src/shared/install.c