History log of /openbsd-current/usr.sbin/ypserv/mknetid/mknetid.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.22 09-Feb-2015 deraadt

clean up flags++ instances around getopt()
ok florian


# 1.21 16-Jan-2015 deraadt

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.20 04-Dec-2013 deraadt

ctype improvements; checked by okan


# 1.19 18-Aug-2013 guenther

Fix calls to printf-like functions which passed a non-fixed string
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.

ok jung@ millert@ krw@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.18 20-Dec-2009 schwarze

When a passwd(5) file is not available, fall back to master.passwd(5).
That's useful because the latter is needed for passwd-maps, anyway.
Make the master.passwd file name configurable in the same way as passwd.

While here, do a bit of cleanup:
- Drop the HOSTS, PASSWD, GROUP, NETID #defines:
They are used nowhere else and serve no purpose.
- Use err(3), it's simpler and more precise than fprintf(3)+goto.
- Drop a debug statement forgotten a decade ago.
- In the manual, improve .Nd, DESCRIPTION and .Xrs.

Originally triggered by edd@'s gripes with our yp implementation.
Regarding the manual, using many tweaks from jmc@.

"I like this" ajacoutot@
"I think it's a good idea" edd@
"no opinion", "you decide" deraadt@


# 1.17 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


# 1.16 16-Oct-2009 sobrado

sort flags in synopsis, usage, and description.


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.15 23-Feb-2008 deraadt

correct pathnames reported; pr#5742


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.14 03-Apr-2006 deraadt

spreading the lint love (very minimal things..)


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.13 14-May-2005 deraadt

knf


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.12 15-Jul-2003 deraadt

protos and repairs


# 1.11 02-Jun-2003 maja

remove clause 3 and 4. -moj


# 1.10 05-May-2003 avsm

-Wall cleanup: trim unused vars, better err() message in stdhosts,
and constify rcsid[]

deraadt@ ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.9 19-Jul-2002 deraadt

bunch more careful tweaks


# 1.8 19-Jul-2002 deraadt

4344 lines of KNF diff


Revision tags: OPENBSD_3_1_BASE
# 1.7 13-Feb-2002 deraadt

some more KNF and -Wall


Revision tags: OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.6 11-Jan-2001 deraadt

indent


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.5 24-Feb-1998 deraadt

pull in prototypes


Revision tags: OPENBSD_2_2_BASE
# 1.4 11-Sep-1997 deraadt

need string.h


Revision tags: OPENBSD_2_1_BASE
# 1.3 15-Jan-1997 millert

getopt(3) returns -1 when out of args, not EOF, whee!


Revision tags: OPENBSD_2_0_BASE
# 1.2 30-May-1996 deraadt

$OpenBSD$ tag and few spelling errors


# 1.1 02-Mar-1996 dm

Added in stuff from 960121. Fixed several bugs in ypxfr.