diff --git a/plugins/sudoers/parse.c b/plugins/sudoers/parse.c index 0f3279697..e5c07f85e 100644 --- a/plugins/sudoers/parse.c +++ b/plugins/sudoers/parse.c @@ -589,8 +589,7 @@ sudo_file_display_cmnd(struct sudo_nss *nss, struct passwd *pw) if (runas_match == ALLOW) { cmnd_match = cmnd_matches(cs->cmnd); if (cmnd_match != UNSPEC) { - match = host_match && runas_match ? - cs->cmnd : NULL; + match = host_match && runas_match ? cs->cmnd : NULL; goto matched; } }