aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-04-18 21:27:09 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-04-18 21:27:09 +0000
commit3fcf3dd63a88c7dc41f2005300bd8df0af9ff749 (patch)
tree8c99c3b136ddaa8cc3570717500d997da3ed5992 /usr.bin
parent361efec23f8691e9c04b418ff444dc1508fe9b6a (diff)
downloadsrc-3fcf3dd63a88c7dc41f2005300bd8df0af9ff749.tar.gz
src-3fcf3dd63a88c7dc41f2005300bd8df0af9ff749.zip
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.
Notes
Notes: svn path=/head/; revision=113693
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/passwd/passwd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/passwd/passwd.c b/usr.bin/passwd/passwd.c
index c66bcb0c3602..d35458c956a1 100644
--- a/usr.bin/passwd/passwd.c
+++ b/usr.bin/passwd/passwd.c
@@ -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 { \