Mercurial > dropbear
comparison svr-chansession.c @ 1173:d734fe76b72f coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 23 Nov 2015 23:04:48 +0800 |
parents | b1fabf797bd3 |
children | a23386821e9f |
comparison
equal
deleted
inserted
replaced
1144:624fc24cfae5 | 1173:d734fe76b72f |
---|---|
812 li = chansess_login_alloc(chansess); | 812 li = chansess_login_alloc(chansess); |
813 login_login(li); | 813 login_login(li); |
814 login_free_entry(li); | 814 login_free_entry(li); |
815 | 815 |
816 #ifdef DO_MOTD | 816 #ifdef DO_MOTD |
817 if (svr_opts.domotd) { | 817 if (svr_opts.domotd && !chansess->cmd) { |
818 /* don't show the motd if ~/.hushlogin exists */ | 818 /* don't show the motd if ~/.hushlogin exists */ |
819 | 819 |
820 /* 12 == strlen("/.hushlogin\0") */ | 820 /* 12 == strlen("/.hushlogin\0") */ |
821 len = strlen(ses.authstate.pw_dir) + 12; | 821 len = strlen(ses.authstate.pw_dir) + 12; |
822 | 822 |