]> granicus.if.org Git - sudo/commit
Refactor the error parts of set_default_entry() so the switch() is
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Aug 2016 16:37:41 +0000 (10:37 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Aug 2016 16:37:41 +0000 (10:37 -0600)
commitcaf064e17bbdfa0d3a0149b61c4f427ebb4fee8c
tree9b71a5245dcdf93bed85a67ff88e2177754c04d8
parent9051c92cb381b93d92bc74d349690f6f3d1f0773
Refactor the error parts of set_default_entry() so the switch() is
mostly just calls to store_foo() functions.  Avoids a lot of
duplicated error checking and silences a cppcheck false positive.
plugins/sudoers/defaults.c