Home | History | Annotate | only in /src/usr.sbin/ypserv/makedbm
History log of /src/usr.sbin/ypserv/makedbm
RevisionDateAuthorComments
 1.7 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.6 09-Feb-2020  fox usr.sbin/ypserv: Suppress -Werror=format-truncation= error.

Add GCC_NO_FORMAT_TRUNCATION makedbm.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
 1.5 02-Oct-1997  lukem branches: 1.5.110;
- build common/* once, into a library, rather than recompiling each of
the files multiple times in the other subdirectories (saves about
10% on compilation time)
- clean up the manual pages
 1.4 18-Jul-1997  thorpej Fix compiler warnings (and an awful lot of annoying little bugs).
 1.3 08-May-1997  gwr Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
 1.2 06-May-1997  gwr Use .PATH.c: ...
 1.1 09-Aug-1996  thorpej branches: 1.1.1;
Initial revision
 1.1.1.1 09-Aug-1996  thorpej A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
 1.5.110.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3 07-Oct-1997  lukem grabage collect this
 1.2 07-Oct-1997  lukem use err instead of errx, so the user has some idea why the file wasn't opened
 1.1 09-Aug-1996  thorpej branches: 1.1.1;
Initial revision
 1.1.1.1 09-Aug-1996  thorpej A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
 1.16 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.15 20-Jul-2013  wiz Use Mt for email addresses.
 1.14 08-Apr-2012  wiz branches: 1.14.2; 1.14.4;
Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
 1.13 20-Oct-2009  snj branches: 1.13.6;
Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.12 26-Feb-2005  wiz Bump date for previous.
 1.11 26-Feb-2005  thorpej YP -> NIS
 1.10 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.9 02-Feb-2002  wiz Sort SEE ALSO, use standard headers and markup in AUTHORS section.
 1.8 19-Jan-2002  wiz Whitespace nits.
 1.7 07-Mar-1999  mycroft Clean up SYNOPSIS formatting.
 1.6 28-Apr-1998  fair Fix man to mdoc conversion mistakes, mostly of the form ^\.[A-Z][A-Z]
 1.5 08-Nov-1997  lukem use ".Tn YP" instead of "YP", fix up some .Nd entries, use .Pa for mapnames
 1.4 13-Oct-1997  lukem branches: 1.4.2;
- ignore trailing NUL in database key/value pairs (which sendmail's
aliases.db has)
- add rcsid
 1.3 07-Oct-1997  lukem cleanup typos, grammaros, thinkos, and misuse of mdoc macros
 1.2 02-Oct-1997  lukem - build common/* once, into a library, rather than recompiling each of
the files multiple times in the other subdirectories (saves about
10% on compilation time)
- clean up the manual pages
 1.1 09-Aug-1996  thorpej branches: 1.1.1;
Initial revision
 1.1.1.1 09-Aug-1996  thorpej A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
 1.4.2.1 28-Nov-1997  mellon Oull rev 1.5 up from trunk (lukem)
 1.13.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.13.6.1 17-Apr-2012  yamt sync with head
 1.14.4.1 23-Jul-2013  riastradh sync with HEAD
 1.14.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25 30-Aug-2011  joerg static + __dead
 1.24 20-Oct-2009  snj Follow upstream's lead and remove third and fourth clauses (except on
from usr.sbin/mopd/common/pf.c, where only the ad clause is removed,
because it has a shared UCB copyright) on Mats O Jansson's files.

thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares
copyright.
 1.23 19-Apr-2009  lukem Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
 1.22 29-Feb-2008  lukem branches: 1.22.10;
Simplify ypdb_open() API and just use it for opening the DB for reading.
Provide a separate ypdb_mktemp() API to open a temporary file read-write.
Use mkstemp() instead of mktemp().

NOTE: makedbm & mkalias tested ok. I couldn't test ypxfer.
 1.21 20-Jun-2005  lukem branches: 1.21.10; 1.21.16;
tweak filename length check
 1.20 30-Oct-2004  dsl Add (unsigned char) cast to ctype functions
 1.19 30-Nov-2002  lukem tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
 1.18 06-Jul-2002  wiz ANSIfy, remove __P().
 1.17 19-Feb-2001  cgd convert to use getprogname()
 1.16 25-Jul-1999  lukem fix up lossage WRT free()ing invalid pointers.
noted in [bin/8064]
 1.15 07-Jun-1999  mrg note that the calls to mktemp() are OK.
 1.14 24-Jun-1998  kleink Need <time.h> for time().
 1.13 10-Jun-1998  kleink Fix an LP64 botch introduced in last commit; reported by Tim Rightnour.
 1.12 08-Jun-1998  lukem convert from in-house read_line to fparseln()
 1.11 01-Jun-1998  kleink Need <stdlib.h> for mktemp() prototype.
 1.10 13-Nov-1997  thorpej Fix int vs. size_t lossage.
 1.9 04-Nov-1997  lukem add { } in the right place; indentation alone isn't sufficient for
if (test1)
if (test2)
error()
else {
...
}
this happened when i changed test2 from a void statement to actually
checking its return value.

the effect of this? a YP_MASTER_KEY value wasn't being added to the
generated databases, which was Not Good.
 1.8 01-Nov-1997  lukem * rewrite read_line(), partially based on get_line in netgroup_mkdb.c:
- use fgetln() instead of fgets()
- store info in internal buffer
- fix \\ support
- count line numbers internally, so \\ lines don't mess up count
* ypdb_store():
- ensure that the length of key or val doesn't exceed YPMAXRECORD
* makedbm, mknetid, revnetgroup, stdethers, stdhosts:
- improve error handling
- take advantage of rewritten read_line(), and cleanup line parsing
- don't print trailing ` ' for key/val pairs with an empty val
* Makefile.yp:
- fix up building of ypservers (from Chuck Cranor)
* ypinit.sh:
- remove leading spaces in variable assignment (from Chuck Cranor)
 1.7 18-Oct-1997  lukem branches: 1.7.2;
use string.h instead of strings.h
 1.6 13-Oct-1997  lukem - ignore trailing NUL in database key/value pairs (which sendmail's
aliases.db has)
- add rcsid
 1.5 07-Oct-1997  lukem use err instead of errx, so the user has some idea why the file wasn't opened
 1.4 08-Sep-1997  mikel add missing newline in usage(); from Hubert Feyrer in PR bin/4064
 1.3 18-Jul-1997  thorpej Fix compiler warnings (and an awful lot of annoying little bugs).
 1.2 22-Mar-1997  lukem use O_EXCL with O_CREAT when making the temporary db files
 1.1 09-Aug-1996  thorpej branches: 1.1.1;
Initial revision
 1.1.1.1 09-Aug-1996  thorpej A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
 1.7.2.1 28-Nov-1997  mellon Pull rev 1.8, 1.9 and 1.10 up from trunk (lukem)
 1.21.16.1 24-Mar-2008  keiichi sync with head.
 1.21.10.1 23-Mar-2008  matt sync with HEAD
 1.22.10.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed