2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

runas_matches is now set to false if we get a negative match

This commit is contained in:
Todd C. Miller
1996-04-28 21:12:45 +00:00
parent 60f30dc2f0
commit 7c95809719

View File

@@ -252,13 +252,15 @@ opcmnd : cmnd { ; }
else if (cmnd_matched == FALSE)
cmnd_matches = TRUE;
}
| runasspec {;}
| nopassreq {;}
| runasspec { ; }
| nopassreq { ; }
;
runasspec : RUNAS runaslist chkcmnd {
if ($2 > 0 && $3 == TRUE)
runas_matches = TRUE;
else
runas_matches = FALSE;
}
runaslist : runasuser {