summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/passwd/local_passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c
index 2c9f4b69c58..91b49d23e78 100644
--- a/usr.bin/passwd/local_passwd.c
+++ b/usr.bin/passwd/local_passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: local_passwd.c,v 1.46 2015/11/26 19:01:47 deraadt Exp $ */
+/* $OpenBSD: local_passwd.c,v 1.47 2016/05/08 20:27:43 tim Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -65,7 +65,7 @@ local_passwd(char *uname, int authenticated)
int i, pfd, tfd = -1;
int pwflags = _PASSWORD_OMITV7;
- if (!(pw = getpwnam(uname))) {
+ if (!(pw = getpwnam_shadow(uname))) {
warnx("unknown user %s.", uname);
return(1);
}