now initializes some fields that weren't getting set to -1
pretty gross -- need a rewrite.
This commit is contained in:
@@ -229,11 +229,16 @@ hostspec : ALL {
|
||||
}
|
||||
;
|
||||
|
||||
opcmndlist : opcmnd
|
||||
| opcmndlist ',' opcmnd
|
||||
opcmndlist : {
|
||||
cmnd_matches = no_passwd = runas_matches = -1;
|
||||
} opcmnd
|
||||
| opcmndlist ',' {
|
||||
cmnd_matches = no_passwd = runas_matches = -1;
|
||||
} opcmnd
|
||||
;
|
||||
|
||||
opcmnd : cmnd {
|
||||
if (strcmp("root", runas_user) == 0)
|
||||
runas_matches = TRUE;
|
||||
}
|
||||
| '!' {
|
||||
|
Reference in New Issue
Block a user