diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-27 17:26:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-29 11:25:32 +0100 |
commit | 02a126a33dc1709dfee2907f150a037787e61b99 (patch) | |
tree | 5f3d5179faf61a2e5175e1499300ec752c60bfc6 /TODO | |
parent | systemctl: rework message suggesting how to create a new unit file (diff) | |
download | systemd-02a126a33dc1709dfee2907f150a037787e61b99.tar.xz systemd-02a126a33dc1709dfee2907f150a037787e61b99.zip |
systemctl: if service manager couldn't load unit file, don't rely on it to tell us the fragment path
Previously, "systemctl edit" exclusively used the service manager's
per-unit FragmentPath property to figure out which file to edit, when
operating on a non-template unit. If for some reason loading the unit
file failed entirely though (LoadState=error), then FragmentPath would
be empty, and thus the unit not editable.
Let's fix this, by falling back to client-side unit file searching in
this case.
(Also, various other clean-ups to make the relevant functions follow our
coding style)
Fixes: #9561
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions