core: unit_name_from_path() does not return -ENAMETOOLONG anymore
Follow-ups fora7fb1f2eaeand1d0727e76f.
This commit is contained in:
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user