mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Add suport for negated user/host/command lists in a Defaults entry.
E.g. Defaults:!baduser noexec
This commit is contained in:
parent
3f33f75b7a
commit
fd6b72f48e
File diff suppressed because it is too large
Load Diff
@ -257,7 +257,7 @@ DEFVAR [a-z_]+
|
|||||||
yyterminate();
|
yyterminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
<INITIAL>^[[:blank:]]*Defaults([:@>\!]{WORD})? {
|
<INITIAL>^[[:blank:]]*Defaults([:@>\!]\!?{WORD})? {
|
||||||
int n;
|
int n;
|
||||||
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
for (n = 0; isblank((unsigned char)yytext[n]); n++)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user