The unified diff between revisions [fb7080ca..] and [426d7aee..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "svr-chansession.c"
#  from [507d7fb29b5b0a8c412603048937d6cf61a54787]
#    to [08c23809a47e0d27ad172306e2e8b22832c0e0a1]
#
============================================================
--- svr-chansession.c	507d7fb29b5b0a8c412603048937d6cf61a54787
+++ svr-chansession.c	08c23809a47e0d27ad172306e2e8b22832c0e0a1
@@ -794,11 +794,11 @@ static int ptycommand(struct Channel *ch
 		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 */