Skip to content
Snippets Groups Projects
Commit e2770593 authored by Matt Johnston's avatar Matt Johnston
Browse files

fix up after merge

--HG--
extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
parent a3b5d3c8
Branches
No related merge requests found
......@@ -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 */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment