]> granicus.if.org Git - sudo/commit
When checking syslog facility or priority, move the string
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 16:46:03 +0000 (10:46 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 26 Oct 2016 16:46:03 +0000 (10:46 -0600)
commite3825cbedd351d23b4b2228143d1de2cc4370543
tree33c0aa2abc08fa28c931bfa44ebb654a73a08138
parentfc1b4155d763ff07087b0dff0921c0d29aaec58f
When checking syslog facility or priority, move the string
compare into the body of the loop and return if it matches.
If we finish the loop it means we didn't find a match.
This makes the code a little bit more readable.
plugins/sudoers/defaults.c