summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv
AgeCommit message (Collapse)Author
1997-02-09Add another routine in ypdb (ypdb_open_suf) that doesn't add the suffix toMats O Jansson
the database name. The suffix is added in the call to mkstemp. Now ypdb and mkstemp can coexist and do what we excpect. All code from 1.12 has been reintegrated now.
1997-02-08Use much of the backed out code from 1.12. But remove use of mkstemp. -mojMats O Jansson
1997-02-07back out mktemp fix; for some reason i cannot understand it causes big problemsTheo de Raadt
1997-02-03kill non-/tmp mktemp race and misc cleanupTheo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-24use mkstempTheo de Raadt
1996-12-14Add Theo's changes to yppush, some very ugly debugging code is now gone. -mojMats O Jansson
1996-12-08install -> ${INSTALL}, -c -> ${COPY}Jason Downs
1996-12-07-d is not always needed. the magic cookie stuff worksTheo de Raadt
1996-12-02bail niceTheo de Raadt
1996-11-11plug db descriptor leakNiklas Hallqvist
1996-11-08Fix grammatical errorNiklas Hallqvist
1996-10-03net byte order for clear checkTheo de Raadt
1996-10-02int ch; from ws@netbsdTheo de Raadt
1996-10-01simplify checkTheo de Raadt
1996-09-30sin_port in net order; _exit() after vfork()Theo de Raadt
1996-09-30Don't allow certain operations if not from a reserved port. -mojMats O Jansson
1996-09-29Fix hostname lookups (improper use of strncpy).dm
1996-08-15for -C check to make sure we've got the proper number of args and give upchuck
if not.
1996-08-15fix printf format (%s -> %d) in yplog debug statementchuck
1996-07-04portmap cannot do security, do not suggest it could; pointed out by bitbltTheo de Raadt
1996-06-30Added support for SIGHUP in ypserv for reread of /var/yp/securenet orMats O Jansson
aclfile.
1996-06-27for DNS hosts.byname queries, supply all addressesTheo de Raadt
1996-06-26Same copyright all over, removed my name from ypdb.[ch], small bugfixMats O Jansson
in ypserv_db.c /moj
1996-05-30$OpenBSD$ tag and few spelling errorsTheo de Raadt
1996-05-30force gethostby{name,addr} to use bind (really ugly & trivial hack)Theo de Raadt
1996-05-30do not use yp_prot.hTheo de Raadt
1996-05-01no longer need yp.no directory.. install into /var/yp directlyTheo de Raadt
1996-04-24use yp.h instead of yp_prot.hTheo de Raadt
1996-04-24slight cleanup, .Os strings, point at yp(8)Theo de Raadt
1996-03-02Using TCP broke ypxfr -C which in turn caused yppush to fail on thedm
master NIS server. I gave yp_bind_host an extra argument to select TCP/UDP transport.
1996-03-02add_interdomain should succeed even with no YP_INTERDOMAIN recorddm
1996-03-02Added in stuff from 960121. Fixed several bugs in ypxfr.dm
1996-01-20ypserv_xdr, as generated by rpcgen from yp.x with one major exception.chuck
in xdr_ypresp_key_val() invert the order of loading the key and value (rpcgen says [1] stat, [2] key, [3] value, but the data on the wire comes in as [1] stat, [2] val, [3] key... you can't fix this in yp.x because if you invert the ordr in yp.x not only does it invert the order in ypserv_xdr.c, but it also inverts it in the structure in yp.h which cancels out the inversion in ypserv_xdr.c. i guess this means it is not possible to have a yp.x that descrives the YP protocol properly?). ***NOTE*** this file is also needed because some of the YP functions in libc are broken. For example, compare src/lib/libc/yp/xdryp.c's version of xdr_domainname() to the one in this file generated by rpcgen. Note that xdryp.c calls: if (!xdr_string(xdrs, &objp, YPMAXDOMAIN)) { /* xdryp.c */ while ypserv_xdr.c (generated by rpcgen) calls: if (!xdr_string(xdrs, objp, YPMAXDOMAIN)) { /* rpcgen */ (note the lack of "&" in the second line). Clearly libc is wrong and needs to be fixed (XXX). (Of course changing libc could break other YP stuff, which is why I haven't attemped it... :) ) When libc is fixed, it should be possible to phase out this file, I think.
1996-01-20major revision and clean up by Chuck Cranor (i.e. me):chuck
- convert to new yplog() function and clean up log message formats - remove transp args from all _svc functions since you can get it from rqstp->rq_xprt, and rpcgen seems to favor this format - delete all the calls to svc_sendreply() and svc_freeargs() as this can be done in one place in ypserv.c (except for the "all" request which forks off a child process) - avoid possible sprintf() buffer overflows by using snprintf() - use MAXPATHLEN, rather than a hardcoded 255. - eliminate un-needed static variables - avoid possible off by one buffer overflow in tid/prog/port and use snprintf() just to be sure. - random code cleanup and simplification
1996-01-20major cleanup by Chuck Cranorchuck
- use queue.h rather than do by hand - fix up logging to use new yplog - fix a few off by one errors - don't double malloc the DBM structure - avoid possible sprintf buffer overflows - random code cleanup
1996-01-20Major reworking of ypserv.c by me: this program actually works now!!chuck
highlights: - fixed yp first call (uses ypreq_nokey rather than ypreq_key, despite what yp.x says) - cleanup of looging - removed SVCXPRT args to "local" since you can get them from svc_req and this makes it look more like rpcgen's output - use new yplog() - add call to db init
1996-01-20new yp.h, as generated by rpcgen.chuck
1996-01-20minor clean upchuck
1996-01-20use new yplog functionchuck
1996-01-20fixed string formatting, minor cleanupchuck
1996-01-20main makefilechuck
1996-01-20fixes: install Makefile.yp, Makefile.mainchuck
1996-01-20various changes (from me):chuck
- don't store null in the database - use MAXPATHLEN - avoid sprintf() buffer overflows - minor cleanups
1996-01-20Total re-write of yplog by Chuck Cranorchuck
(made it more printf like)
1996-01-20fix: adjust private keys to exclude the null in their sizechuck
(we don't store nulls in the db [any more])
1996-01-20cleanup: use snprintf() to prevent buffer overflowchuck
1996-01-06Makefile.yp is /var/yp/MakefileTheo de Raadt
1996-01-06resurrect Makefile.ypTheo de Raadt