]> granicus.if.org Git - sudo/commit
Use LH_FOREACH_REV when checking permission and short-circuit on
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 31 Aug 2007 01:21:26 +0000 (01:21 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 31 Aug 2007 01:21:26 +0000 (01:21 +0000)
commit10e5d4e708ec78c6ed83c16e15c4475b1042721d
tree865a794e98dbaf99e67443f8ef91f6a1f20f0a1e
parent270ba11dbf7740fb11fe57914ff5a8942e2e2c1b
Use LH_FOREACH_REV when checking permission and short-circuit on
the first non-UNSPEC hit we get for the command.  This means that
instead of cycling through the all the parsed sudoers entries we
start at the end and work backwards and quit after the first positive
or negative match.
match.c
parse.c
testsudoers.c