From: Kay Sievers Date: Mon, 22 Nov 2010 10:06:38 +0000 (+0100) Subject: mount_cgroup_controllers: expect 2 items from fscanf() X-Git-Tag: v14~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f6682d0b74f3f1f29ef71aa10d20b36e10b48c;p=systemd mount_cgroup_controllers: expect 2 items from fscanf() --- diff --git a/src/mount-setup.c b/src/mount-setup.c index 7eb806e7..7e468e27 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;