summaryrefslogtreecommitdiffstats
path: root/usr.bin/ypwhich
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-04-21 18:04:36 +0000
committerwpaul <wpaul@FreeBSD.org>1995-04-21 18:04:36 +0000
commitbe813a3b68f7e9be9bfef131c96c99089a98aa39 (patch)
treee8c95e4950ed2d5368e9f49ee0ff9ef92b373dd1 /usr.bin/ypwhich
parent79d93cb4f787cfc70f395d40220e021b6d8be7f2 (diff)
downloadFreeBSD-src-be813a3b68f7e9be9bfef131c96c99089a98aa39.zip
FreeBSD-src-be813a3b68f7e9be9bfef131c96c99089a98aa39.tar.gz
small NIS binding fixes:
ypbind.c: if a client program asks ypbind for the name of the server for a particular domain, and there isn't a binding for that domain available yet, ypbind needs to supply a status value along with its failure message. Set yprespbody.ypbind_error before returning from a ypbindproc_domain request. yplib.c: properly handle the error status messages ypbind now has the ability to send us. Add a ypbinderr_string() function to decode the error values. ypwhich.c: handle ypbind errors correctly: yperr_string() can't handle ypbind_status messages -- use ypbinderr_string instead.
Diffstat (limited to 'usr.bin/ypwhich')
-rw-r--r--usr.bin/ypwhich/ypwhich.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c
index cefac38..74b85b1 100644
--- a/usr.bin/ypwhich/ypwhich.c
+++ b/usr.bin/ypwhich/ypwhich.c
@@ -103,7 +103,7 @@ struct sockaddr_in *sin;
} else {
if (ypbr.ypbind_status != YPBIND_SUCC_VAL) {
fprintf(stderr, "can't yp_bind: Reason: %s\n",
- yperr_string(ypbr.ypbind_status));
+ ypbinderr_string(ypbr.ypbind_status));
clnt_destroy(client);
return r;
}
OpenPOWER on IntegriCloud