Mercurial > dropbear
diff svr-chansession.c @ 465:af3307f46a3d
merge of '295b11312e327fe6c4f33512674ea4a1a9790344'
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 13 Jan 2008 04:01:46 +0000 |
parents | 4317be8b7cf9 1009980436c2 |
children | f11544d96354 |
line wrap: on
line diff
--- a/svr-chansession.c Sun Jan 13 03:55:59 2008 +0000 +++ b/svr-chansession.c Sun Jan 13 04:01:46 2008 +0000 @@ -798,11 +798,11 @@ if (svr_opts.domotd) { /* don't show the motd if ~/.hushlogin exists */ - /* 11 == strlen("/hushlogin\0") */ - len = strlen(ses.authstate.pw_dir) + 11; + /* 12 == strlen("/.hushlogin\0") */ + len = strlen(ses.authstate.pw->pw_dir) + 12; hushpath = m_malloc(len); - snprintf(hushpath, len, "%s/hushlogin", ses.authstate.pw_dir); + snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw->pw_dir); if (stat(hushpath, &sb) < 0) { /* more than a screenful is stupid IMHO */