diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-11-02 15:03:16 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-11-02 15:03:16 +0000 |
commit | ae5c76ec6190aa0b0b5ce9d38f5013ff4886ad54 (patch) | |
tree | 24af2d9c09161a527dc1e8e4a0efe90e8112d721 | |
parent | ad532cd196adca8c6913c706e32da7b1c8cb5574 (diff) | |
download | dropbear-ae5c76ec6190aa0b0b5ce9d38f5013ff4886ad54.tar.gz |
Actually use ~/.hushlogin rather than ~/hushlogin to ignore motd.
-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 619a451..55d68e7 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -794,11 +794,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->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->pw_dir); + snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw->pw_dir); if (stat(hushpath, &sb) < 0) { /* more than a screenful is stupid IMHO */ |