aboutsummaryrefslogtreecommitdiff
path: root/gnu/libexec/ypxfr
Commit message (Collapse)AuthorAgeFilesLines
* Toss ypxfr into the attic. The new one should be appearing shortly.Bill Paul1995-12-259-1872/+0
| | | | Notes: svn path=/head/; revision=13006
* Remove trailing whitespace.Rodney W. Grimes1995-05-303-28/+28
| | | | Notes: svn path=/head/; revision=8858
* Removed code from yp_xdr.c module that now lives in libc. (Unfortunately,Bill Paul1995-04-021-91/+0
| | | | | | | | | | ypxfr can't easily be reduced down to one file like yppush because it needs to do certain special things (such as binding to a specific machine (the NIS master)) which the yp_*() functions in libc don't allow. Notes: svn path=/head/; revision=7591
* Rework error reporting/logging: although the SunOS documentation saysBill Paul1995-03-317-44/+140
| | | | | | | | | | | | that ypxfr is supposed to log messages to /var/yp/ypxfr.log if it exists, using syslog() makes more sense, especially since ypserv does the same thing already. Try to use stderr by default, and use syslog() if stderr is not a tty. Also update the man page to reflect this change. Notes: svn path=/head/; revision=7508
* Ack... clean up the logfile name generation that I botched in the lastBill Paul1995-03-301-3/+2
| | | | | | | commit. Notes: svn path=/head/; revision=7484
* Fix up the way _PATH_YP is used to put together the pathname to theBill Paul1995-03-302-13/+30
| | | | | | | | | | | | | NIS maps (get rid of extraneous slash a la /var/yp//domainname). Have ypxfr log all output to /var/yp/ypxfr.log if stdin is not a tty. This should allow logging to be done when ypxfr is called from inside ypserv in response to a yppush request. Update man page to reflect the change (and fix a typo). Notes: svn path=/head/; revision=7483
* Removed annoying changelog entries from ypclnt.c, added usage() functionBill Paul1995-02-062-61/+25
| | | | | | | to ypxfr.c. Notes: svn path=/head/; revision=6220
* Wrote manual page for ypxfr, modified Makefile to install it.Bill Paul1995-02-062-5/+198
| | | | Notes: svn path=/head/; revision=6216
* Obtained from: The NYS projectBill Paul1995-01-317-0/+1694
This is a ported/modified version of the ypxfr program from the yps-0.21 package from the NYS project. This program is normally invoked by ypserv when it receives a yppush command from an NIS master. It can also be run from the command line to grab copies of maps when initializing a slave server. This program has been hacked in the following ways: - rpcgen'ed new yp_xdr.c, yp_svc.c and yp_clnt.c files. The old ones were rather grody. - Changed certain function names (prefended a _ to them) to avoid conflicts with certain functions lurking within libc. One major problem here is that ypxfr needs to bind to a YP master in order to work correctly, but it can't use the _yp_bind function inside libc because that function only lets you bind to a domain, not a specific host. Lots of head scratching here. - Converted from GDBM to DB at gunpoint. - Removed lots of really nasty looking DEBUG code to try to reduce clutter. - Incorporated some of the library code supplied with yps-0.21 on which ypxfr was dependent. This program still needs to be cleaned up just as a matter of principle: I get all icky just looking at it sometimes. Notes: svn path=/head/; revision=6072