Commit 0802a288 by dlezcano

fix wrong mnt info usage

parent 0a5acaf2
...@@ -54,7 +54,7 @@ static int get_cgroup_mount(const char *mtab, char *mnt) ...@@ -54,7 +54,7 @@ static int get_cgroup_mount(const char *mtab, char *mnt)
} }
while ((mntent = getmntent(file))) { while ((mntent = getmntent(file))) {
if (strcmp(mntent->mnt_fsname, "cgroup")) if (strcmp(mntent->mnt_type, "cgroup"))
continue; continue;
strcpy(mnt, mntent->mnt_dir); strcpy(mnt, mntent->mnt_dir);
err = 0; err = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment