diff options
author | 2019-01-27 21:12:16 +0100 | |
---|---|---|
committer | 2019-01-27 21:12:16 +0100 | |
commit | 9343ca30143dd178281996699599de411078adca (patch) | |
tree | 046cb3039221010f075189b0e25e2e4b65636417 | |
parent | enable/disable cgroup in firejail.config (diff) | |
download | firejail-9343ca30143dd178281996699599de411078adca.tar.gz firejail-9343ca30143dd178281996699599de411078adca.tar.zst firejail-9343ca30143dd178281996699599de411078adca.zip |
Fix parsing of cgroup option in config
-rw-r--r-- | src/firejail/checkcfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/checkcfg.c b/src/firejail/checkcfg.c index 6a9d017b7..ab34b7903 100644 --- a/src/firejail/checkcfg.c +++ b/src/firejail/checkcfg.c | |||
@@ -131,10 +131,10 @@ int checkcfg(int val) { | |||
131 | goto errout; | 131 | goto errout; |
132 | } | 132 | } |
133 | // cgroup | 133 | // cgroup |
134 | else if (strncmp(ptr, "cgroup ", 5) == 0) { | 134 | else if (strncmp(ptr, "cgroup ", 7) == 0) { |
135 | if (strcmp(ptr + 5, "yes") == 0) | 135 | if (strcmp(ptr + 7, "yes") == 0) |
136 | cfg_val[CFG_CGROUP] = 1; | 136 | cfg_val[CFG_CGROUP] = 1; |
137 | else if (strcmp(ptr + 5, "no") == 0) | 137 | else if (strcmp(ptr + 7, "no") == 0) |
138 | cfg_val[CFG_CGROUP] = 0; | 138 | cfg_val[CFG_CGROUP] = 0; |
139 | else | 139 | else |
140 | goto errout; | 140 | goto errout; |