While I really liked the error message one received from `passwd'

when it could not determine the source of the user's passwd(5) entry,
it might be somewhat confusing now that we can have sources that are
not compiled into libc.
This commit is contained in:
nectar 2003-04-18 21:27:09 +00:00
parent a999bc3c9d
commit 8d0a63adb5

View File

@ -119,13 +119,10 @@ main(int argc, char *argv[])
fprintf(stderr, "Changing NIS password for %s\n",
pwd->pw_name);
break;
case _PWF_HESIOD:
errx(1, "can't change Hesiod password");
break;
default:
/* specieist! */
errx(1, "can't change little green men's passwords (0x%x)",
pwd->pw_fields);
/* XXX: Green men ought to be supported via PAM. */
errx(1,
"Sorry, `passwd' can only change passwords for local or NIS users.");
}
#define pam_check(func) do { \