summaryrefslogtreecommitdiffstats
path: root/lib/libypclnt
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-12-16 22:24:26 +0000
committermbr <mbr@FreeBSD.org>2002-12-16 22:24:26 +0000
commitd975ae88c1d27ae949bace4ebe9916bc7be8afbf (patch)
tree1c9982dd57f64d9d27d246e74bbbce9267211200 /lib/libypclnt
parent08b76459f3f8f388a66abdc41491604856d7b9ef (diff)
downloadFreeBSD-src-d975ae88c1d27ae949bace4ebe9916bc7be8afbf.zip
FreeBSD-src-d975ae88c1d27ae949bace4ebe9916bc7be8afbf.tar.gz
Change the name for the local unix-socket based protocol
from "unix" back to "local". Add some compat stuff so both ways work for some time. Reviewed by: phk Approved by: imp (UPDATING) Requested by: iedowse, lukem@netbsd.org
Diffstat (limited to 'lib/libypclnt')
-rw-r--r--lib/libypclnt/ypclnt_passwd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libypclnt/ypclnt_passwd.c b/lib/libypclnt/ypclnt_passwd.c
index 0dd6569..076408f 100644
--- a/lib/libypclnt/ypclnt_passwd.c
+++ b/lib/libypclnt/ypclnt_passwd.c
@@ -154,7 +154,9 @@ yppasswd_local(ypclnt_t *ypclnt, const struct passwd *pwd, const char *passwd)
}
/* connect to rpc.yppasswdd */
- nc = getnetconfigent("unix");
+ nc = getnetconfigent("local");
+ if (nc == NULL)
+ nc = getnetconfigent("unix");
clnt = clnt_tp_create(ypclnt->server, YPPASSWDPROG, YPPASSWDVERS, nc);
if (clnt == NULL) {
ypclnt_error(ypclnt, __func__,
OpenPOWER on IntegriCloud