mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix "sudo -l command" output when the matching command is negated.
Bug #636
This commit is contained in:
parent
967fda0fbc
commit
35c41deb41
@ -697,7 +697,8 @@ sudo_file_display_cmnd(struct sudo_nss *nss, struct passwd *pw)
|
|||||||
if (runas_match == ALLOW) {
|
if (runas_match == ALLOW) {
|
||||||
cmnd_match = cmnd_matches(cs->cmnd);
|
cmnd_match = cmnd_matches(cs->cmnd);
|
||||||
if (cmnd_match != UNSPEC) {
|
if (cmnd_match != UNSPEC) {
|
||||||
match = host_match && runas_match ? cs->cmnd : NULL;
|
if (cmnd_match == ALLOW)
|
||||||
|
match = cs->cmnd;
|
||||||
goto matched;
|
goto matched;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user