fix up after merge

--HG--
extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
This commit is contained in:
Matt Johnston 2008-01-13 04:02:08 +00:00
parent a3b5d3c8b3
commit e277059339

View File

@ -799,10 +799,10 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) {
/* don't show the motd if ~/.hushlogin exists */ /* don't show the motd if ~/.hushlogin exists */
/* 12 == strlen("/.hushlogin\0") */ /* 12 == strlen("/.hushlogin\0") */
len = strlen(ses.authstate.pw->pw_dir) + 12; len = strlen(ses.authstate.pw_dir) + 12;
hushpath = m_malloc(len); 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) { if (stat(hushpath, &sb) < 0) {
/* more than a screenful is stupid IMHO */ /* more than a screenful is stupid IMHO */