mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Recover from a syntax error after the ':' in a privilege spec.
For compound privilege specs, don't throw away the entire thing if we have a syntax error, only the part after the error is encountered.
This commit is contained in:
parent
11803027c6
commit
c7bc24d40b
File diff suppressed because it is too large
Load Diff
@ -316,6 +316,10 @@ privileges : privilege
|
||||
HLTQ_CONCAT($1, $3, entries);
|
||||
$$ = $1;
|
||||
}
|
||||
| privileges ':' error eol {
|
||||
yyerrok;
|
||||
$$ = $1;
|
||||
}
|
||||
;
|
||||
|
||||
privilege : hostlist '=' cmndspeclist {
|
||||
|
Loading…
x
Reference in New Issue
Block a user