pid1: kill unit_file_find_dropin_paths() helper
It had two users, but it is just a very thin wrapper around unit_file_find_dropin_paths(), so using it seems more complicated than directly invoking unit_file_find_dropin_paths() twice.
This commit is contained in:
@@ -2616,7 +2616,9 @@ static int unit_find_paths(
|
||||
return log_error_errno(r, "Failed to add unit name: %m");
|
||||
|
||||
if (ret_dropin_paths) {
|
||||
r = unit_file_find_dropin_conf_paths(arg_root, lp->search_path, NULL, names, &dropins);
|
||||
r = unit_file_find_dropin_paths(arg_root, lp->search_path, NULL,
|
||||
".d", ".conf",
|
||||
names, &dropins);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user