From ac908c1eeacccfa85659594d92428659320fd57e Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 22 Oct 2015 09:35:24 +1100 Subject: [PATCH] turn off PrintLastLog when --disable-lastlog bz#2278 from Brent Paulson --- servconf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servconf.c b/servconf.c index b5db0f743..f9be7f093 100644 --- a/servconf.c +++ b/servconf.c @@ -499,7 +499,11 @@ static struct { { "listenaddress", sListenAddress, SSHCFG_GLOBAL }, { "addressfamily", sAddressFamily, SSHCFG_GLOBAL }, { "printmotd", sPrintMotd, SSHCFG_GLOBAL }, +#ifdef DISABLE_LASTLOG + { "printlastlog", sUnsupported, SSHCFG_GLOBAL }, +#else { "printlastlog", sPrintLastLog, SSHCFG_GLOBAL }, +#endif { "ignorerhosts", sIgnoreRhosts, SSHCFG_GLOBAL }, { "ignoreuserknownhosts", sIgnoreUserKnownHosts, SSHCFG_GLOBAL }, { "x11forwarding", sX11Forwarding, SSHCFG_ALL },