diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1995-04-21 18:04:36 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1995-04-21 18:04:36 +0000 |
commit | 644161688b698803156c4bc85cc4e4fd5428e2f8 (patch) | |
tree | e8c95e4950ed2d5368e9f49ee0ff9ef92b373dd1 /usr.bin/ypwhich/ypwhich.c | |
parent | 8da0f3b87aa5be5e617b0cd9c9f6960bdc468a4c (diff) | |
download | src-644161688b698803156c4bc85cc4e4fd5428e2f8.tar.gz src-644161688b698803156c4bc85cc4e4fd5428e2f8.zip |
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.
Notes
Notes:
svn path=/head/; revision=7982
Diffstat (limited to 'usr.bin/ypwhich/ypwhich.c')
-rw-r--r-- | usr.bin/ypwhich/ypwhich.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index cefac38ffa79..74b85b148de0 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; } |