path-util: fix more path_is_mount e792e890f fallout
This commit is contained in:
+2
-2
@@ -889,7 +889,7 @@ static int mount_all(const char *dest) {
|
||||
return log_oom();
|
||||
|
||||
t = path_is_mount_point(where, true);
|
||||
if (t < 0) {
|
||||
if (t < 0 && t != -ENOENT) {
|
||||
log_error_errno(t, "Failed to detect whether %s is a mount point: %m", where);
|
||||
|
||||
if (r == 0)
|
||||
@@ -1028,7 +1028,7 @@ static int mount_cgroup_hierarchy(const char *dest, const char *controller, cons
|
||||
to = strjoina(dest, "/sys/fs/cgroup/", hierarchy);
|
||||
|
||||
r = path_is_mount_point(to, false);
|
||||
if (r < 0)
|
||||
if (r < 0 && r != -ENOENT)
|
||||
return log_error_errno(r, "Failed to determine if %s is mounted already: %m", to);
|
||||
if (r > 0)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user