summaryrefslogtreecommitdiff
path: root/src/mount-setup.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-11-22 11:06:38 +0100
committerKay Sievers <kay.sievers@vrfy.org>2010-11-22 11:06:38 +0100
commit16f6682d0b74f3f1f29ef71aa10d20b36e10b48c (patch)
tree373c31fe2b5759c83e3dce6340a625e42b1ed571 /src/mount-setup.c
parent6bd212771129d00cf7b42d6774a6b81547569384 (diff)
mount_cgroup_controllers: expect 2 items from fscanf()
Diffstat (limited to 'src/mount-setup.c')
-rw-r--r--src/mount-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 7eb806e7fd..7e468e2728 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -140,7 +140,7 @@ static int mount_cgroup_controllers(void) {
char *controller, *where;
int enabled = false;
- if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 1) {
+ if (fscanf(f, "%ms %*i %*i %i", &controller, &enabled) != 2) {
if (feof(f))
break;