version 1.6, 1997/02/16 20:09:00 |
version 1.7, 1997/02/17 10:34:41 |
|
|
if (client==NULL) { |
if (client==NULL) { |
fprintf(stderr, "cannot contact yppasswdd on %s: Reason: %s\n", |
fprintf(stderr, "cannot contact yppasswdd on %s: Reason: %s\n", |
master, yperr_string(YPERR_YPBIND)); |
master, yperr_string(YPERR_YPBIND)); |
|
free(yppasswd.newpw.pw_passwd); |
return(YPERR_YPBIND); |
return(YPERR_YPBIND); |
} |
} |
client->cl_auth = authunix_create_default(); |
client->cl_auth = authunix_create_default(); |
|
|
fprintf(stderr, "%s: rpc to yppasswdd failed.\n", progname); |
fprintf(stderr, "%s: rpc to yppasswdd failed.\n", progname); |
else if (status) { |
else if (status) { |
printf("Couldn't change YP password.\n"); |
printf("Couldn't change YP password.\n"); |
|
free(yppasswd.newpw.pw_passwd); |
exit(1); |
exit(1); |
} |
} |
printf("The YP password has been changed on %s, the master YP passwd server.\n", |
printf("The YP password has been changed on %s, the master YP passwd server.\n", |
master); |
master); |
|
free(yppasswd.newpw.pw_passwd); |
exit(0); |
exit(0); |
} |
} |
|
|