Date: Wed, 18 May 2022 18:19:04 +0000 From: bugzilla-noreply@freebsd.org To: amd64@FreeBSD.org Subject: [Bug 209441] SSHd in FreeBSD 10.3 complains about PrintLastLog Message-ID: <bug-209441-17361-stTNRUNFtV@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-209441-17361@https.bugs.freebsd.org/bugzilla/> References: <bug-209441-17361@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209441 --- Comment #18 from Ed Maste <emaste@freebsd.org> --- This is a bug in OpenSSH upstream and I've sent mail to the openssh-unix-de= vel mailing list about it. This patch is probably closer to the proper fix; please give it a try: diff --git a/crypto/openssh/servconf.c b/crypto/openssh/servconf.c index 6eaf9c2876ff..45587631cb8b 100644 --- a/crypto/openssh/servconf.c +++ b/crypto/openssh/servconf.c @@ -611,7 +611,7 @@ static struct { { "listenaddress", sListenAddress, SSHCFG_GLOBAL }, { "addressfamily", sAddressFamily, SSHCFG_GLOBAL }, { "printmotd", sPrintMotd, SSHCFG_GLOBAL }, -#ifdef DISABLE_LASTLOG +#if defined(DISABLE_LASTLOG) && defined(DISABLE_UTMPX) { "printlastlog", sUnsupported, SSHCFG_GLOBAL }, #else { "printlastlog", sPrintLastLog, SSHCFG_GLOBAL }, @@ -2915,7 +2915,7 @@ dump_config(ServerOptions *o) dump_cfg_fmtint(sKbdInteractiveAuthentication, o->kbd_interactive_authentication); dump_cfg_fmtint(sPrintMotd, o->print_motd); -#ifndef DISABLE_LASTLOG +#if !defined(DISABLE_LASTLOG) || !defined(DISABLE_UTMPX) dump_cfg_fmtint(sPrintLastLog, o->print_lastlog); #endif dump_cfg_fmtint(sX11Forwarding, o->x11_forwarding); --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209441-17361-stTNRUNFtV>