summaryrefslogtreecommitdiffstats
path: root/chpass/pw_yp.c
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1996-10-22 00:41:55 +0000
committerBill Paul <wpaul@FreeBSD.org>1996-10-22 00:41:55 +0000
commit2e3d15689a705bdf5332df79fa68bbad034ddb05 (patch)
treef6b60ee96264e92ff4ff479afa685b5614528e62 /chpass/pw_yp.c
parentb2e5386c8bdcab49b312895115acc82a89fdaa51 (diff)
downloadpw-darwin-2e3d15689a705bdf5332df79fa68bbad034ddb05.tar.gz
pw-darwin-2e3d15689a705bdf5332df79fa68bbad034ddb05.tar.zst
pw-darwin-2e3d15689a705bdf5332df79fa68bbad034ddb05.zip
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 'chpass/pw_yp.c')
-rw-r--r--chpass/pw_yp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/chpass/pw_yp.c b/chpass/pw_yp.c
index a334fee..3cf65d1 100644
--- a/chpass/pw_yp.c
+++ b/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);
}