diff options
author | Martin Blapp <mbr@FreeBSD.org> | 2002-12-16 22:24:26 +0000 |
---|---|---|
committer | Martin Blapp <mbr@FreeBSD.org> | 2002-12-16 22:24:26 +0000 |
commit | fb4c80619a9d305abdd8b73ec6436693d6052899 (patch) | |
tree | 1c9982dd57f64d9d27d246e74bbbce9267211200 /lib/libypclnt/ypclnt_passwd.c | |
parent | 6f8a5ea2005c75c8e84ab0df5d0efa655459e196 (diff) | |
download | src-test2-fb4c80619a9d305abdd8b73ec6436693d6052899.tar.gz src-test2-fb4c80619a9d305abdd8b73ec6436693d6052899.zip |
Notes
Diffstat (limited to 'lib/libypclnt/ypclnt_passwd.c')
-rw-r--r-- | lib/libypclnt/ypclnt_passwd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libypclnt/ypclnt_passwd.c b/lib/libypclnt/ypclnt_passwd.c index 0dd6569919b3..076408ff27e1 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__, |