diff options
Diffstat (limited to 'lib/libypclnt')
-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 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__, |