summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo: seperate -> separate.asmodai2001-02-062-2/+2
| | | | Seperate does not exist in the english language.
* Convert from CIRCLEQ to TAILQ.phk2000-12-292-46/+44
|
* Prepare for mdoc(7)NG.ru2000-12-271-0/+1
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-3/+1
|
* mdoc(7) police: do not split author names in the AUTHORS section.ru2000-11-221-0/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-5/+5
|
* Use Fx macro wherever possible.ru2000-11-141-2/+2
|
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Don't call syslog() without a format string.kris2000-07-121-2/+2
|
* Further protection against comments in /etc/{passwd,group}brian2000-06-281-4/+6
| | | | | Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> PR: 14269
* Handle comments and empty lines when generating YP passwd and group filesbrian2000-06-151-4/+8
| | | | | PR: 14269 Submitted by: howard@ee.utah.edu
* Fix typo.asmodai2000-06-041-1/+1
| | | | | PR: 18845 Submitted by: Kevin <kevin@ns1.stcp.net>
* Back out the previous change to the queue(3) interface.jake2000-05-262-4/+4
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-232-4/+4
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Remove a bogus include.asmodai2000-04-291-1/+0
|
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-5/+10
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-012-34/+68
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Fix various man pages to stop abusing the .Bx macro to generatempp2000-01-232-16/+20
| | | | the string "FreeBSD". Use the .Fx macro instead.
* $Id$ -> $FreeBSD$peter1999-08-2813-13/+13
|
* Modify yp_mkdb so that it only checks for bogus '+' and '-' characterswpaul1999-08-221-7/+7
| | | | | | | | | | | 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.
* Various man page cleanup:mpp1999-08-151-2/+2
| | | | | | | | | | - Sort xrefs. - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlined in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* Fix typo (missing double quote)n_hibma1999-06-241-2/+2
|
* Close PR #10971: flush the database cache after forking in ypproc_all_2_svc()wpaul1999-04-301-0/+8
| | | | so that parent and child don't share DB handles.
* Close PR #10970: exit at the end of ypproc_all_2_svc() instead of returning.wpaul1999-04-301-3/+10
| | | | | | This really fixes the condition where a child creates children of its own. I'm leaving the previous sanity tests in though, since they shouldn't hurt, and will give an indication if this ever happens again.
* Add some extra checks to make sure that a child ypserv process doesn'twpaul1999-04-293-18/+30
| | | | | | | | | try to fork() a child of its own, which could result in several children ypservs running at once. I'm still not sure exactly what leads to this condition, but these fixes should stop it from causing trouble. A new function, yp_fork() checks to see if the current process is already a child of the parent ypserv, and returns failure (and logs an error message) rather than spawning another child.
* Close PR #11122: check key length before calling strncmp()wpaul1999-04-141-3/+4
| | | | in yp_next_record().
* Fix reference to rpc.yppasswdd.ghelmer1999-03-021-2/+2
| | | | PR: docs/10171
* Add a reference to the ypinit(8) command.ghelmer1999-02-231-1/+7
| | | | PR: docs/7679 (in spirit)
* Add some tweaks to hopefully fix a problem I've started to notice recently.wpaul1999-02-102-10/+20
| | | | | | | | | | | Under certain conditions (possibly associated with heavy load), ypserv will fork() child processes that don't exit like they're supposed to. I think this is because of some suspect logic in the ypproc_all procedure. I updated it to use what I hope is a more bulletproof approach. Also tweaked yp_svc_run() a little so that the 'are we a child?' test happens at every pass through the for(;;) loop, not just immediately after returning from svc_getreqset2().
* Sort cross references.wosch1998-08-311-2/+2
|
* DNS lookups for partially qualified hosts didn't work right. I was tryingwpaul1998-08-101-5/+2
| | | | | | | | to be clever by avoiding the 'check all domains in the search list' cycle in certain cases, but this would lose if handed a name like "foo.ctr" which refers to an FQDN of "foo.ctr.columbia.edu". If "columbia.edu" is in the search list in /etc/resolv.conf then the DNS lookup code should resolve it, but it didn't.
* A comment in /usr/src/usr.sbin/ypserv/Makefile.ypphk1998-07-221-4/+3
| | | | | | | | | | (a.k.a. /var/yp/Makefile.dist) refers to an obsoleted usage of the -m option of rpc.yppasswdd. It is currently taken over by the -t option. -m is used for a different purpose now. PR: 7279 Reviewed by: phk Submitted by: Amakawa Shuhei <amakawa@nebula.sf.t.u-tokyo.ac.jp>
* Allow blank lines in /var/yp/securenets.des1998-07-151-2/+3
|
* If we get back too much data to fit in result, return NULL. This avoidsimp1998-06-091-1/+5
| | | | | | | | | | a buffer overflow, but might negatively impact those hosts who have enough aliases to fill MAXHOSTNAMELEN * 2 characters in them. Good candidate for merging back into -stable. Lightly tested by me, but it came from OpenBSD a while ago. Obtained from: OpenBSD
* Protect errno in signal handlers, like in portmap.wpaul1998-06-041-2/+8
|
* Fixed double slashes in pathnames.bde1998-05-311-2/+2
|
* Removed bogus dependencies of generated .c files on generated headers.bde1998-05-101-3/+3
|
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-232-4/+4
|
* Fixed `make -jN' for large N, as usual. Too usual for yp programs.bde1998-03-061-2/+2
|
* *sigh* I will not commit late at night. I will not commit late at night.wpaul1998-02-211-2/+1
| | | | | | | | | | I will not commit late at night. I will not commit late at night. I swear it's been Monday all week for me. Apply proper fix for services target submitted by Andre Albsmeier <andre.albsmeier@mchp.siemens.de>. Sorry for botching this that last time, Andre. (Could have been worse: t least I didn't break the build.)
* Arghhh.... another missing backslash. Yes, I feel stupid.wpaul1998-02-201-2/+2
|
* Doh! Replace backslash that got eaten by gremlins in the last commit.wpaul1998-02-181-2/+2
|
* Close PR #2206: fix the services.byname target so that it can handlewpaul1998-02-131-5/+7
| | | | | | | | | | /etc/services entries with any protocol instead of just udp and tcp. Rather thani having the awk script explicitly search for 'udp' or 'tcp' in the second field using index(), use split() to break up the field at the '/' character if it exists, which extracts the protocol from the field no matter what it is. PR: 2206
* Fix a bug in the database handle caching. This has to do with the way thewpaul1998-02-114-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | underlying database code works. When dealing with first/next queries, you have the notion of a database 'cursor,' which is essentially a file pointer for the database. To select the first entry, you do a fetch with the R_FIRST flag set, then you can use the R_NEXT flag to enumerate the other entries in the database. Unfortunately, doing a direct fetch with no flag does _not_ set the 'cursor,' so you can't do a direct fetch and then enumerate the table from there. The bug is that cached handles generated as the result of a YPPROC_MATCH were being treated as though they were the same as handles generated by a YPPROC_FIRST, which is not the case. The manifestation is that if you do a 'ypmatch first-key-in-map map' followed by a yp_first()/yp_next() pair, the yp_first() and yp_next() both return the first key in the table, which makes the entry appear to be duplicated. A couple smaller things since I'm here: - yp_main.c and yp_error.c both have a global 'int debug' in them. For some reason, our cc/ld doesn't flag this as a multiply defined symbol even though it should. Removed the declaration from yp_main.c; we want the one in yp_error.c. - The Makefile wasn't installing ypinit in the right place.
* Fix Makefile.yp so that it no longer creates a temporary file calledwpaul1998-02-041-83/+47
| | | | | | | | /tmp/ypmake, thereby fixing problems with successive map updates possibly reading stale copies of this file left behind by a previous failed run. PR: 5571
* Allow comments to begin with multiple '#' characters.steve1998-01-251-22/+22
| | | | | PR: 4452 Submitted by: Joao Carlos Mendes Luis <Jonny@mailhost.coppe.ufrj.br>
* Some touchups courtesy of Philippe Charnier.wpaul1997-11-162-13/+18
|
* Add a ypinit script and man page (script lifted from OpenBSD and haquedwpaul1997-11-104-14/+673
| | | | | | | | to work on FreeBSD, man page written by me.) Also change Makefile.yp a little to be more tolerane in the face of missing source files. Print a message if we can't find /var/yp/master.passwd telling the user what to do to fix things.
* Fix typo: 129.168.128.0 -> 192.168.128.0jseger1997-11-011-2/+2
| | | | | PR: docs/4871 Submitted by: sec@42.org
* Typos in man page. Cosmetics in error strings.charnier1997-10-299-133/+182
|
OpenPOWER on IntegriCloud