path-util: fix more path_is_mount e792e890f fallout
This commit is contained in:
@@ -487,8 +487,10 @@ int cg_get_path(const char *controller, const char *path, const char *suffix, ch
|
||||
int r;
|
||||
|
||||
r = path_is_mount_point("/sys/fs/cgroup", false);
|
||||
if (r <= 0)
|
||||
return r < 0 ? r : -ENOENT;
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
return -ENOENT;
|
||||
|
||||
/* Cache this to save a few stat()s */
|
||||
good = true;
|
||||
|
||||
Reference in New Issue
Block a user