mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 13:58:05 +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:
File diff suppressed because it is too large
Load Diff
@@ -316,6 +316,10 @@ privileges : privilege
|
|||||||
HLTQ_CONCAT($1, $3, entries);
|
HLTQ_CONCAT($1, $3, entries);
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
}
|
}
|
||||||
|
| privileges ':' error eol {
|
||||||
|
yyerrok;
|
||||||
|
$$ = $1;
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
privilege : hostlist '=' cmndspeclist {
|
privilege : hostlist '=' cmndspeclist {
|
||||||
|
Reference in New Issue
Block a user