Commit Graph

10 Commits

Author SHA1 Message Date
Todd C. Miller
51fbe264f1 Don't print a trailing comma for the last entry in enum def_tupple 2004-11-29 17:34:09 +00:00
Todd C. Miller
175e9e4720 Add a callback field and use it for runas_default 2004-01-16 23:02:18 +00:00
Todd C. Miller
4d5ce6761f add missing newline to usage statement 2004-01-05 02:40:02 +00:00
Todd C. Miller
1cb5703273 Always put at least one space between the def_* macro name and its
definition.
2003-12-30 22:41:52 +00:00
Todd C. Miller
02f37dc2da 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.
2003-12-30 22:31:30 +00:00
Todd C. Miller
6ad252765b Create def_* macros for each defaults value so we no longer need
the def_{flag,ival,str,list,mode} macros (which have been removed).
This is a step toward more flexible data types in def_data.in.
2003-12-30 22:20:21 +00:00
Todd C. Miller
76ff0218c1 Fix generation of entries with NULL descriptions. 2001-12-11 01:27:42 +00:00
Todd C. Miller
2d5486db9a fix breakage in last commit 2001-11-02 22:25:21 +00:00
Todd C. Miller
27a4c619bc fix warning when no args 2001-11-02 20:51:18 +00:00
Todd C. Miller
d956d77528 Move defaults info into its own files from which we generate
.h and .c files.  This makes adding or rearranging variables
much simpler.
2000-12-31 01:38:37 +00:00