[prev in list] [next in list] [prev in thread] [next in thread] 

List:       systemd-commits
Subject:    [systemd-commits] src/mount-setup.c
From:       kay () kemper ! freedesktop ! org (Kay Sievers)
Date:       2010-11-22 10:15:36
Message-ID: 20101122101536.5334B10057 () kemper ! freedesktop ! org
[Download RAW message or body]

 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;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic