summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTim van der Molen <tim@cvs.openbsd.org>2016-05-08 20:27:44 +0000
committerTim van der Molen <tim@cvs.openbsd.org>2016-05-08 20:27:44 +0000
commit595dbfa409b576e832f418b2afdb890c8790dd96 (patch)
tree868f308f3c7f002ca5de64de6c848566475c555d /usr.bin
parentc9768934dd119b838d90182f58883b11c7f642b3 (diff)
Switch to getpwnam_shadow() now that getpwnam() no longer opens the shadow
database; OK deraadt@ sthen@
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);
}