Mercurial > dropbear
diff svr-chansession.c @ 466:f11544d96354
fix up after merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 13 Jan 2008 04:02:08 +0000 |
parents | af3307f46a3d |
children | 52a644e7b8e1 c302c7383282 |
line wrap: on
line diff
--- a/svr-chansession.c Sun Jan 13 04:01:46 2008 +0000 +++ b/svr-chansession.c Sun Jan 13 04:02:08 2008 +0000 @@ -799,10 +799,10 @@ /* don't show the motd if ~/.hushlogin exists */ /* 12 == strlen("/.hushlogin\0") */ - len = strlen(ses.authstate.pw->pw_dir) + 12; + len = strlen(ses.authstate.pw_dir) + 12; hushpath = m_malloc(len); - snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw->pw_dir); + snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw_dir); if (stat(hushpath, &sb) < 0) { /* more than a screenful is stupid IMHO */