core: unit_name_from_path() does not return -ENAMETOOLONG anymore

Follow-ups for a7fb1f2eae and
1d0727e76f.
This commit is contained in:
Yu Watanabe
2022-08-05 01:34:55 +09:00
parent 6688b72d32
commit 03e52e8cc3
3 changed files with 6 additions and 30 deletions
+1 -1
View File
@@ -1519,7 +1519,7 @@ static int unit_add_mount_dependencies(Unit *u) {
Unit *m;
r = unit_name_from_path(prefix, ".mount", &p);
if (IN_SET(r, -EINVAL, -ENAMETOOLONG))
if (r == -EINVAL)
continue; /* If the path cannot be converted to a mount unit name, then it's
* not manageable as a unit by systemd, and hence we don't need a
* dependency on it. Let's thus silently ignore the issue. */