diff options
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r-- | svr-authpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c index f161b69..cc9e838 100644 --- a/svr-authpasswd.c +++ b/svr-authpasswd.c @@ -50,7 +50,7 @@ void svr_auth_password() { passwdcrypt = ses.authstate.pw->pw_passwd; #ifdef HAVE_SHADOW_H /* get the shadow password if possible */ - spasswd = getspnam(ses.authstate.pw->pw_name); + spasswd = getspnam(ses.authstate.printableuser); if (spasswd != NULL && spasswd->sp_pwdp != NULL) { passwdcrypt = spasswd->sp_pwdp; } |