diff options
author | tedu <tedu@openbsd.org> | 2015-11-18 19:27:46 +0000 |
---|---|---|
committer | tedu <tedu@openbsd.org> | 2015-11-18 19:27:46 +0000 |
commit | 283ea68698df7df45c21c7c7d8441cc571f41a7e (patch) | |
tree | 278975b9b49932a44fe3620e3357c91051d06fe8 /libexec/login_passwd | |
parent | needs _shadow so it can rewrite the master.passwd file (diff) | |
download | wireguard-openbsd-283ea68698df7df45c21c7c7d8441cc571f41a7e.tar.xz wireguard-openbsd-283ea68698df7df45c21c7c7d8441cc571f41a7e.zip |
use _shadow getpw functions. these utilities obviously deal with hashes.
Diffstat (limited to 'libexec/login_passwd')
-rw-r--r-- | libexec/login_passwd/login_passwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_passwd/login_passwd.c b/libexec/login_passwd/login_passwd.c index d6ada58b1da..f9df675bfee 100644 --- a/libexec/login_passwd/login_passwd.c +++ b/libexec/login_passwd/login_passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_passwd.c,v 1.12 2015/10/14 17:06:58 deraadt Exp $ */ +/* $OpenBSD: login_passwd.c,v 1.13 2015/11/18 19:27:46 tedu Exp $ */ /*- * Copyright (c) 2001 Hans Insulander <hin@openbsd.org>. @@ -46,7 +46,7 @@ pwd_login(char *username, char *password, char *wheel, int lastchance, if (password == NULL) return (AUTH_FAILED); - pwd = getpwnam(username); + pwd = getpwnam_shadow(username); if (pwd) goodhash = pwd->pw_passwd; |