path-util: fix more path_is_mount e792e890f fallout

This commit is contained in:
Lennart Poettering
2015-04-07 16:03:45 +02:00
parent 2c0223282d
commit da00518b3f
4 changed files with 16 additions and 10 deletions
+4 -2
View File
@@ -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;