now initializes some fields that weren't getting set to -1

pretty gross -- need a rewrite.
This commit is contained in:
Todd C. Miller
1996-07-07 20:01:38 +00:00
parent 6d7e5a3091
commit f52c2aa2ed

View File

@@ -229,11 +229,16 @@ hostspec : ALL {
} }
; ;
opcmndlist : opcmnd opcmndlist : {
| opcmndlist ',' opcmnd cmnd_matches = no_passwd = runas_matches = -1;
} opcmnd
| opcmndlist ',' {
cmnd_matches = no_passwd = runas_matches = -1;
} opcmnd
; ;
opcmnd : cmnd { opcmnd : cmnd {
if (strcmp("root", runas_user) == 0)
runas_matches = TRUE; runas_matches = TRUE;
} }
| '!' { | '!' {