mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 05:17:28 +00:00
fix up after merge
--HG-- extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
This commit is contained in:
parent
a3b5d3c8b3
commit
e277059339
@ -799,10 +799,10 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) {
|
||||
/* 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 */
|
||||
|
Loading…
Reference in New Issue
Block a user