version 1.29, 2006/03/30 21:06:29 |
version 1.30, 2007/08/14 13:30:45 |
|
|
tv.tv_usec = 0; |
tv.tv_usec = 0; |
r = clnt_call(client, YPPASSWDPROC_UPDATE, |
r = clnt_call(client, YPPASSWDPROC_UPDATE, |
xdr_yppasswd, &yppasswd, xdr_int, &status, tv); |
xdr_yppasswd, &yppasswd, xdr_int, &status, tv); |
if (r) |
if (r) { |
warnx("rpc to yppasswdd failed."); |
printf("rpc to yppasswdd failed.\n"); |
else if (status) { |
free(yppasswd.newpw.pw_passwd); |
|
return (1); |
|
} else if (status) { |
printf("Couldn't change YP password.\n"); |
printf("Couldn't change YP password.\n"); |
free(yppasswd.newpw.pw_passwd); |
free(yppasswd.newpw.pw_passwd); |
return (1); |
return (1); |
|
} else { |
|
printf("The YP password has been changed on %s, " |
|
"the master YP passwd server.\n", master); |
|
free(yppasswd.newpw.pw_passwd); |
|
return (0); |
} |
} |
printf("The YP password has been changed on %s, " |
|
"the master YP passwd server.\n", master); |
|
free(yppasswd.newpw.pw_passwd); |
|
return (0); |
|
} |
} |
|
|
char * |
char * |