mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 11:55:23 +03:00
mount_cgroup_controllers: expect 2 items from fscanf()
This commit is contained in:
parent
6bd2127711
commit
16f6682d0b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user