summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* When a passwd(5) file is not available, fall back to master.passwd(5).schwarze2009-12-202-73/+69
| | | | | | | | | | | | | | | | | | | 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@
* MIN_UID in yp make removes root, so look for something that isian2009-11-211-3/+3
| | | | still likely: localhost in hosts map. ok deraadt@
* Correct and shorten the instructions what to do after accidentallyschwarze2009-11-061-12/+7
| | | | | | | | deleting the ypservers.db file, both in the manual and in the FAQ; original suggestion to improve this from ajacoutot@, my wording tweaked by jmc@. While here, resolve text duplication in the manual.
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-2720-100/+20
| | | | | | | 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
* the flags -h and -u are mutually exclusive; we do not need enclosingsobrado2009-10-202-19/+14
| | | | | | | | | | -f in brackets in the list of options; while here, sort the options in the manual page. jmc@ greatly improved the diff fixing a few additional bits on the manual page. ok jmc@
* improve the synopsis of mkalias(8) and sort the list of flags onsobrado2009-10-202-27/+26
| | | | | | the manual page. ok jmc@
* sort flags in synopsis, usage, and description.sobrado2009-10-162-18/+18
|
* restrict YP UID and GID rangesschwarze2009-04-122-40/+86
| | | | | | from NetBSD and Debian via ajacoutot@ tweaks and documentation updates by myself with help from jmc@ OK ajacoutot@ jmc@ "move ahead" deraadt@
* Do not run make in /var/yp at the end of ypinit -m.schwarze2009-04-042-28/+16
| | | | | | | | That way, you can edit the new domain Makefile before using it, in particular to change variables like DIR and UNSECURE. from ajacoutot@ with message tweaks and documentation updates by myself "I like this" otto@
* getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)schwarze2009-03-271-27/+69
| | | | | | | | | | | | | | contains a matching entry, use that and refrain from accessing YP. getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains a matching entry before the first YP entry, use that and stay away from YP. Taken together, this allows a solution to the following problem pointed out by deraadt@: When YP was configured but temporarily unavailable, even root login would block, hindering you when trying to do repairs. To avoid this, you can now provide a static entry for root in /etc/netid. Using suggestions from miod@ otto@ blambert@ jmc@. "commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc@.
* man page for Makefile.yp, and associated bits; from Ingo Schwarzejmc2008-10-226-10/+279
| | | | ok deraadt
* sort options in DESCRIPTION.sobrado2008-06-021-8/+8
|
* sort flags; synchronize synopsis and usage; style(9).sobrado2008-06-014-14/+17
| | | | | | tweaked by jmc@, thanks! ok jmc@
* synchronize synopsis and usage.sobrado2008-06-011-3/+3
|
* correct pathnames reported; pr#5742deraadt2008-02-231-7/+11
|
* use memrchr; ok millert@.fgsch2007-09-041-18/+3
|
* Use err(3) functions. input and ok millert.fgsch2007-09-041-22/+19
|
* use memchr and a memrchr like implementation on non C strings. fixesfgsch2007-08-051-12/+28
| | | | | a crash triggered by specific malloc.conf settings. with help and ok millert@
* convert to new .Dd format;jmc2007-05-3114-29/+29
|
* Remove clause 3 and 4. Ok with Chuck. -mojmaja2007-05-291-8/+2
|
* use macros from sys/queue.hpyr2007-05-271-3/+3
| | | | ok otto@
* Change hard coded numbers to sizeof(buf). Also change someray2007-02-201-3/+3
| | | | | | | | sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
* - simply synopsis and usage()jmc2007-02-192-36/+32
| | | | | | - order options mostly from Igor Sobrado
* tidy up synopsis and usage(); from Igor Sobradojmc2007-02-182-7/+5
|
* Outsource fgets line reading, newline continuation, and commentray2006-11-222-15/+16
| | | | | | | handling to fparseln. Fixes out of bounds array access for strings of length 0 or 1. OK moritz@.
* `elminate' etc. is not really the right way to spell `eliminate'.mk2006-11-102-6/+6
| | | | ok brad
* Use S_IS* macros insted of masking with S_IF* flags. The latter mayotto2006-09-253-16/+13
| | | | | have multiple bits set, which leads to surprising results. Spotted by from Paul Stoeber, more to come. ok jaredy@
* spreading the lint love (very minimal things..)deraadt2006-04-0318-156/+151
|
* do not leak on re-insert; ok pvalchevderaadt2006-03-181-4/+7
|
* Adapt things to use __type_t instead of _BSD_TYPE_T_millert2006-01-061-2/+2
| | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
* Userland programs should include <errno.h> not <sys/errno.h>millert2005-12-212-6/+6
| | | | OK deraadt@
* Use queue macros instead of directly accessing fields. ok miod@ pat@ millert@otto2005-10-151-5/+5
|
* use poll() instead of select(), pr4505, alexander.farber@gmail.comderaadt2005-09-161-32/+29
|
* use poll() instead of select(), pr4503, alexander.farber@gmail.comderaadt2005-09-161-24/+22
|
* knfderaadt2005-05-147-70/+55
|
* bug introduced by me in 1.4deraadt2005-05-141-3/+3
|
* some Xr's from jason ackley;jmc2005-05-132-4/+5
|
* add some const to ether_*. remove bonus prototypes this brought out.tedu2005-03-281-5/+2
| | | | ok deraadt@
* Don't close the database too early. ok deraadt@, millert@.matthieu2004-07-081-3/+3
|
* Use closefrom(); ok millert teduderaadt2004-01-231-5/+3
|
* explicit .x.[ch] rules to avoid accidental bad matches in /usr/include.matthieu2004-01-201-7/+6
| | | | ok millert@
* typos from Jonathon Gray;jmc2003-11-081-3/+3
|
* add missing includesdavid2003-07-184-8/+12
| | | | ok tedu@
* protos and repairsderaadt2003-07-1521-176/+165
|
* Remove files without copyright. Add a yp v1 protocol specification andmaja2003-06-226-370/+218
| | | | generate files at compile time. -moj ok @deraadt
* ansifyderaadt2003-06-121-4/+4
|
* - section reorderjmc2003-06-1214-57/+55
| | | | | | - macro fixes - kill whitespace at EOL - new sentence, new line
* fix some more UCB term 3deraadt2003-06-042-12/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* remove clause 3 and 4. -mojmaja2003-06-0233-212/+49
|