summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-10-22 00:41:55 +0000
committerwpaul <wpaul@FreeBSD.org>1996-10-22 00:41:55 +0000
commit341ed58244435485549b67245725fb9bfdfee657 (patch)
tree7fa2577da3ebcbb1bafdc916be6ea8847565c085 /usr.bin/chpass
parent0e1fd8a8f77f414e126b68b4c5cb884edfe9c33f (diff)
downloadFreeBSD-src-341ed58244435485549b67245725fb9bfdfee657.zip
FreeBSD-src-341ed58244435485549b67245725fb9bfdfee657.tar.gz
Modify the 'couldn't create udp handle' message so it tell you
the name of the host that couldn't be connected to. This will hopefully make it easier to diagnose problems with certain NIS configuration problems.
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/pw_yp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/chpass/pw_yp.c b/usr.bin/chpass/pw_yp.c
index a334fee..3cf65d1 100644
--- a/usr.bin/chpass/pw_yp.c
+++ b/usr.bin/chpass/pw_yp.c
@@ -35,7 +35,7 @@
* Center for Telecommunications Research
* Columbia University, New York City
*
- * $Id: pw_yp.c,v 1.4 1996/03/04 15:34:43 wpaul Exp $
+ * $Id: pw_yp.c,v 1.5 1996/05/07 21:05:12 wpaul Exp $
*/
#ifdef YP
@@ -196,7 +196,8 @@ static int my_yp_match(server, domain, map, key, keylen, result, resultlen)
bzero((char *)buf, sizeof(buf));
if ((clnt = clnt_create(server, YPPROG,YPVERS,"udp")) == NULL) {
- warnx("%s", clnt_spcreateerror("failed to create handle"));
+ warnx("failed to create UDP handle: %s",
+ clnt_spcreateerror(server));
pw_error(tempname, 0, 1);
}
@@ -480,8 +481,8 @@ void yp_submit(pw)
if ((clnt = clnt_create(master, YPPASSWDPROG,
YPPASSWDVERS, "udp")) == NULL) {
- warnx("failed to contact rpc.yppasswdd on %s: %s",
- master, clnt_spcreateerror(""));
+ warnx("failed to contact rpc.yppasswdd: %s",
+ master, clnt_spcreateerror(master));
pw_error(tempname, 0, 1);
}
OpenPOWER on IntegriCloud