From: Damien Miller Date: Wed, 21 Oct 2015 22:35:24 +0000 (+1100) Subject: turn off PrintLastLog when --disable-lastlog X-Git-Tag: V_7_2_P1~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac908c1eeacccfa85659594d92428659320fd57e;p=thirdparty%2Fopenssh-portable.git turn off PrintLastLog when --disable-lastlog bz#2278 from Brent Paulson --- 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 },