diff options
author | Matt Johnston <matt@ucc.asn.au> | 2008-01-13 04:01:46 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2008-01-13 04:01:46 +0000 |
commit | 97ce1ff196b2a022b4b46f539467f0a7b1aae204 (patch) | |
tree | 106a58c23c2158d353c4b9be012d7d04e19fbc8d | |
parent | 2b6a90ef86c0227ee843a72c3da95ca122983269 (diff) | |
parent | ae5c76ec6190aa0b0b5ce9d38f5013ff4886ad54 (diff) | |
download | dropbear-97ce1ff196b2a022b4b46f539467f0a7b1aae204.tar.gz |
merge of '295b11312e327fe6c4f33512674ea4a1a9790344'
and '426d7aeea950d007ed7ef9f03f9f40b138a769cb'
-rw-r--r-- | svr-chansession.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index ddb51b0..da3fe8d 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -798,11 +798,11 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) { 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 */ |