# HG changeset patch # User Matt Johnston # Date 1194015796 0 # Node ID 1009980436c2977423aee1839692167df408d83b # Parent db4f6adcb7e23c92a4be988b5d8ba74056783e23 Actually use ~/.hushlogin rather than ~/hushlogin to ignore motd. diff -r db4f6adcb7e2 -r 1009980436c2 svr-chansession.c --- a/svr-chansession.c Thu Oct 18 12:18:44 2007 +0000 +++ b/svr-chansession.c Fri Nov 02 15:03:16 2007 +0000 @@ -794,11 +794,11 @@ 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 */