On Tue, Aug 23, 2016 at 03:14:55PM +0200, Christer Solskogen wrote: > Hi! > > /etc/motd is not displayed on my system anymore when logging in with ssh. > In sshd_config I see: > #PrintMotd yes > > But even removing the hashtag (and restarting ssh) it's still not displayed. > > > It's not working on > OpenBSD tugs.antarctica.no 6.0 GENERIC.MP#2383 amd64 > > $ cat /etc/motd > OpenBSD 6.0-current (GENERIC.MP) #2383: Mon Aug 22 17:28:09 MDT 2016 > > Welcome to OpenBSD: The proactively secure Unix-like operating system. > > Please use the sendbug(1) utility to report bugs in the system. > Before reporting a bug, please try to reproduce it with the latest > version of the code. With bug reports, please try to ensure that > enough information to reproduce the problem is enclosed, and if a > known fix for it exists, include that as well. > > > But it works fine on > OpenBSD hugs.antarctica.no 6.0 GENERIC.MP#2348 amd64 > > This might *very* well be that I've done something stupid, but it > might also be a bug. Anyone else seeing this? > > -- > chs
I noted this too. The diff below should fix it. -Otto Index: session.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/session.c,v retrieving revision 1.284 diff -u -p -r1.284 session.c --- session.c 19 Aug 2016 03:18:06 -0000 1.284 +++ session.c 23 Aug 2016 14:34:58 -0000 @@ -505,8 +505,7 @@ do_exec_pty(Session *s, const char *comm close(ttyfd); /* record login, etc. similar to login(1) */ - if (command != NULL) - do_login(s, command); + do_login(s, command); /* * Do common processing for the child, such as execing