[systemd-commits] src/mount-setup.c
Kay Sievers
kay at kemper.freedesktop.org
Mon Nov 22 02:15:36 PST 2010
src/mount-setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 16f6682d0b74f3f1f29ef71aa10d20b36e10b48c
Author: Kay Sievers <kay.sievers at vrfy.org>
Date: Mon Nov 22 11:06:38 2010 +0100
mount_cgroup_controllers: expect 2 items from fscanf()
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 7eb806e..7e468e2 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;
More information about the systemd-commits
mailing list