1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 17:25:34 +03:00

systemctl: unit_file_find_fragment() doesn't log about errors, hence do it in the caller

This commit is contained in:
Lennart Poettering 2021-01-14 15:02:33 +01:00
parent 1842c1b2ab
commit b420e6f0ce

View File

@ -520,7 +520,7 @@ int unit_find_paths(
r = unit_file_find_fragment(*cached_id_map, *cached_name_map, unit_name, &_path, &names);
if (r < 0)
return r;
return log_error_errno(r, "Failed to find fragment for '%s': %m", unit_name);
if (_path) {
path = strdup(_path);