# HG changeset patch # User Matt Johnston # Date 1091983286 0 # Node ID 0fe267cc9dee14dadd70d61d27886cdc87c06a38 # Parent c8fcd48419561b17bdd78227c87a35b0696cffa0 Be a bit safer with reentrant pw_name diff -r c8fcd4841956 -r 0fe267cc9dee svr-authpasswd.c --- a/svr-authpasswd.c Sun Aug 08 16:18:03 2004 +0000 +++ b/svr-authpasswd.c Sun Aug 08 16:41:26 2004 +0000 @@ -50,7 +50,7 @@ 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; }