mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
merge: strncmp byte count fixes
This commit is contained in:
parent
fa10d297bb
commit
e65aea0acd
1 changed files with 1 additions and 1 deletions
|
|
@ -719,7 +719,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
|
|||
}
|
||||
|
||||
// nice value
|
||||
if (strncmp(ptr, "nice ", 4) == 0) {
|
||||
if (strncmp(ptr, "nice ", 5) == 0) {
|
||||
cfg.nice = atoi(ptr + 5);
|
||||
if (getuid() != 0 &&cfg.nice < 0)
|
||||
cfg.nice = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue