]> granicus.if.org Git - sudo/commit
Add support for tuples in def_data.in; these are implemented as an
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Dec 2003 22:31:30 +0000 (22:31 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Dec 2003 22:31:30 +0000 (22:31 +0000)
commit02f37dc2dae4e96c4892f33767ca42e9033ad302
tree77d4c95e0e1b87dccbadfa2e5281bddb24bdaee1
parent6ad252765bb52044a1a664168f042f65ecc3deb3
Add support for tuples in def_data.in; these are implemented as an
enum type.  Currently there is only a single tuple enum but in the
future we may have one tuple enum per T_TUPLE entry in def_data.in.
Currently listpw, verifypw and lecture are tuples.  This avoids the
need to have two entries (one ival, one str) for pwflags and syslog
values.

lecture is now a tuple with the following values: never, once, always

We no longer use both an int and string entry for syslog facilities
and priorities.  Instead, there are logfac2str() and logpri2str()
functions that get used when we need to print the string values.
check.c
def_data.c
def_data.h
def_data.in
defaults.c
defaults.h
logging.c
mkdefaults
parse.c
sudo.c
sudo.h