diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2021-01-14 09:17:41 +0100 |
---|---|---|
committer | Anita Zhang <the.anitazha@gmail.com> | 2021-01-15 00:05:30 +0100 |
commit | e4d22a9f321e3d7c4a3e3bc1783c5204d79d80e3 (patch) | |
tree | 64d688105fe9e9a8ed17431dd255ec1cfcbde7b0 /src/systemctl | |
parent | systemctl-edit: fix abort in find_paths_to_edit() (diff) | |
download | systemd-e4d22a9f321e3d7c4a3e3bc1783c5204d79d80e3.tar.xz systemd-e4d22a9f321e3d7c4a3e3bc1783c5204d79d80e3.zip |
systemctl-edit: Add missing ret_dropin_paths argument in retry path
find_paths_to_edit() makes 2 calls to unit_find_paths(), one of which is
a retry client-side. ret_dropin_paths should be passed the same in
both cases.
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index a67318258e..4186ec3aea 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -398,7 +398,7 @@ static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) { /* If loading of the unit failed server side complete, then the server won't tell us * the unit file path. In that case, find the file client side. */ log_debug_errno(r, "Unit '%s' was not loaded correctly, retrying client-side.", *name); - r = unit_find_paths(bus, *name, &lp, true, &cached_name_map, &cached_id_map, &path, NULL); + r = unit_find_paths(bus, *name, &lp, true, &cached_name_map, &cached_id_map, &path, &unit_paths); } if (r == -ERFKILL) return log_error_errno(r, "Unit '%s' masked, cannot edit.", *name); |