]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
turn off PrintLastLog when --disable-lastlog
authorDamien Miller <djm@mindrot.org>
Wed, 21 Oct 2015 22:35:24 +0000 (09:35 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 21 Oct 2015 22:35:24 +0000 (09:35 +1100)
bz#2278 from Brent Paulson

servconf.c

index b5db0f74375a1262a10ddcee3165428b048617ca..f9be7f0930cbd162eef8cc5b92f5ea8d1d94617b 100644 (file)
@@ -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 },