CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2009/12/20 05:33:59

Modified files:
        usr.sbin/ypserv/mknetid: mknetid.8 mknetid.c 

Log message:
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 j...@.

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

Reply via email to