=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/passwd/local_passwd.c,v retrieving revision 1.46 retrieving revision 1.47 diff -c -r1.46 -r1.47 *** src/usr.bin/passwd/local_passwd.c 2015/11/26 19:01:47 1.46 --- src/usr.bin/passwd/local_passwd.c 2016/05/08 20:27:43 1.47 *************** *** 1,4 **** ! /* $OpenBSD: local_passwd.c,v 1.46 2015/11/26 19:01:47 deraadt Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. --- 1,4 ---- ! /* $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,71 **** int i, pfd, tfd = -1; int pwflags = _PASSWORD_OMITV7; ! if (!(pw = getpwnam(uname))) { warnx("unknown user %s.", uname); return(1); } --- 65,71 ---- int i, pfd, tfd = -1; int pwflags = _PASSWORD_OMITV7; ! if (!(pw = getpwnam_shadow(uname))) { warnx("unknown user %s.", uname); return(1); }