summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-25 00:53:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-25 00:53:50 +0000
commita7561fa666a69e4cf4462d2d758924bb9470736f (patch)
tree6ab127b6aa9b0c3c78cdcc2eb46d7aaf18fcfe14 /lib
parent06acb9e73401609b754a00ffa89901ac4bc9996d (diff)
NIS+ in YP compatibility mode does not support a working yp_order(). amd
wants one so it can flush it's cache intelligently. Here's a working compromise... solution worked out by matthieu@laas.fr and I.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/yp/yp_order.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/yp/yp_order.c b/lib/libc/yp/yp_order.c
index c9292f724cf..fab5c2524d5 100644
--- a/lib/libc/yp/yp_order.c
+++ b/lib/libc/yp/yp_order.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp_order.c,v 1.1 1996/04/24 12:56:26 deraadt Exp $ */
+/* $OpenBSD: yp_order.c,v 1.2 1996/04/25 00:53:49 deraadt Exp $ */
/* $NetBSD: yplib.c,v 1.17 1996/02/04 23:26:26 jtc Exp $ */
/*
@@ -80,12 +80,10 @@ again:
xdr_ypreq_nokey, &yprnk, xdr_ypresp_order, &ypro, tv);
/*
* XXX
- * NIS+ YP emulation package does not impliment YPPROC_ORDER, so
- * we always return 0. Or should we return an error?
+ * NIS+ YP emulation package does not impliment YPPROC_ORDER
*/
if (r == RPC_PROCUNAVAIL) {
- *outorder = 0;
- r = 0;
+ r = YPERR_YPERR;
goto bail;
}
if (r != RPC_SUCCESS) {