summaryrefslogtreecommitdiffstats
path: root/usr.sbin/yp_mkdb/yp_mkdb.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+2
|
* Spell void * as void * rather than caddr_t. This is complicated by thedes2002-04-281-3/+3
| | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs
* ANSIfy and remove some dead code.des2002-02-061-9/+8
| | | | Sponsored by: DARPA, NAI Labs
* Apply the following mechanical transformations in preparation fordes2002-02-061-5/+5
| | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
* Fix stupid disorder in previous commit. This was my own error, notsheldonh1999-09-011-1/+1
| | | | the mistake of the PR's originator.
* The -f option stole the -d option's option string colon in the getoptsheldonh1999-09-011-1/+1
| | | | | | | optstring. PR: 13521 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Modify yp_mkdb so that it only checks for bogus '+' and '-' characterswpaul1999-08-221-7/+14
| | | | | | | | | | | in source input if the -f flag is used, and modify Makefile.yp to only use -f for the passwd, master.passwd and group maps. These should be the only ones for which the + and - characters have special meaning that make it important for us to avoid letting them into any of the map databases. In some cases (namely the automounter maps) we have to allow at least the - character through in order to create the map properly. This closes PR #8699.
* Remove `progname'.charnier1997-10-271-22/+18
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-3/+3
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-2/+2
|
* Check for, warn about and reject lines with empty keys. You can't havewpaul1997-02-091-0/+5
| | | | | a database entry with a null key. These are often caused by spurious blank lines in the map source file.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add -b and -s flags for adding YP_INTERDOMAIN and YP_SECURE entries towpaul1996-10-241-5/+29
| | | | | | | | | | | | | map databases. Also document said flags in the man page. Adding YP_INTERDOMAIN to a map causes ypserv(8) to do a DNS lookup when a yp_match() on the map fails. (This affects only the hosts.by* maps; for all other maps it's ignored.) The YP_SECURE entry causes ypserv(8) to restrict access to the map so that only clients making requests from reserved ports can get at it. Our ypserv doesn't currently support these features so they're silently ignored for the moment, but this will change. :)
* Update to pass new arguments now expected by the yp_dbwrite routines.wpaul1996-06-051-10/+10
| | | | No functional changes.
* This commit was generated by cvs2svn to compensate for changes in r15423,wpaul1996-04-281-0/+313
which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud