From d975ae88c1d27ae949bace4ebe9916bc7be8afbf Mon Sep 17 00:00:00 2001 From: mbr Date: Mon, 16 Dec 2002 22:24:26 +0000 Subject: 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 --- lib/libypclnt/ypclnt_passwd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libypclnt') 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__, -- cgit v1.1