From owner-freebsd-commit Wed Jan 10 08:08:00 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA12948 for freebsd-commit-outgoing; Wed, 10 Jan 1996 08:08:00 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA12937 for cvs-all-outgoing; Wed, 10 Jan 1996 08:07:53 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA12926 for cvs-usrsbin-outgoing; Wed, 10 Jan 1996 08:07:45 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA12919 Wed, 10 Jan 1996 08:07:42 -0800 (PST) Date: Wed, 10 Jan 1996 08:07:42 -0800 (PST) From: Bill Paul Message-Id: <199601101607.IAA12919@freefall.freebsd.org> To: CVS-committers, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ypserv yp_access.c yp_server.c Sender: owner-commit@FreeBSD.ORG Precedence: bulk wpaul 96/01/10 08:07:41 Modified: usr.sbin/ypserv yp_access.c yp_server.c Log: More changes brought about by testing of yppush (which is almost finished): In yp_server.c: - Modify ypproc_xfr_2_svc() so that it sends both a return status and a yppush callback (if necessary: normally ypxfr is supposed to send the callback once it's done transfering a map, but if we can't get ypxfr off the ground for some reason, we have to send it here instead) and do it in the right order: have to send the reply to the ypproc_xfr request first, then send callback. This requires us to cheat a bit: you're supposed to just return() and let the RPC dispatcher send the reply for you, but we wouldn't be able to send the callback message if we did that, so we have to call svc_sendreply() ourselves, then send the callback, and then return NULL so that the RPC dispatcher won't call svc_sendreply() itself. - Also modify ypproc_xfr_2_svc() so that it doesn't invoke ypxfr with the -f flag: this overrides the order number checks, which prevents us from ever refusing maps that aren't newer than then ones we already have. In yp_access.c: - Fix a typo in the TCP_WRAPPER support code (which is #ifdef'ed out by default): a close paren somehow vanished into the ether. Revision Changes Path 1.2 +1 -1 src/usr.sbin/ypserv/yp_access.c 1.3 +42 -17 src/usr.sbin/ypserv/yp_server.c