retcode = pam_start("chfn", oldf.username, &conv, &pamh);
if(retcode != PAM_SUCCESS) {
- fprintf(stderr, _("chfn: PAM Failure, aborting: %s\n"),
- pam_strerror(pamh, retcode));
+ fprintf(stderr, _("%s: PAM failure, aborting: %s\n"),
+ whoami, pam_strerror(pamh, retcode));
exit(1);
}
retcode = pam_start("chsh", pw->pw_name, &conv, &pamh);
if(retcode != PAM_SUCCESS) {
- fprintf(stderr, _("chsh: PAM Failure, aborting: %s\n"),
- pam_strerror(pamh, retcode));
+ fprintf(stderr, _("%s: PAM failure, aborting: %s\n"),
+ whoami, pam_strerror(pamh, retcode));
exit(1);
}
retcode = pam_start("login",username, &conv, &pamh);
if(retcode != PAM_SUCCESS) {
- fprintf(stderr, _("login: PAM Failure, aborting: %s\n"),
- pam_strerror(pamh, retcode));
+ fprintf(stderr, _("%s: PAM failure, aborting: %s\n"),
+ "login", pam_strerror(pamh, retcode));
syslog(LOG_ERR, _("Couldn't initialize PAM: %s"),
pam_strerror(pamh, retcode));
exit(99);