From owner-freebsd-current Tue Nov 12 5:36:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E6B37B401 for ; Tue, 12 Nov 2002 05:36:35 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DC7243E6E for ; Tue, 12 Nov 2002 05:36:34 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.6/8.12.6) with ESMTP id gACDaWmj029657; Tue, 12 Nov 2002 16:36:32 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.6/8.12.6/Submit) id gACDaVIi029656; Tue, 12 Nov 2002 16:36:31 +0300 (MSK) (envelope-from ache) Date: Tue, 12 Nov 2002 16:36:31 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: current@freebsd.org Subject: Re: sshd: double "Last login:" bugfix spammed again Message-ID: <20021112133631.GA29498@nagual.pp.ru> References: <20021106141959.GA53561@nagual.pp.ru> <20021112125547.GA28874@nagual.pp.ru> <20021112131227.GB28874@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Nov 12, 2002 at 14:26:58 +0100, Dag-Erling Smorgrav wrote: > pam.d is not relevant, sshd_config is. I sent it to you privately. > des@des ~% ssh localhost > Last login: Tue Nov 12 14:25:39 2002 from :0.0 It is "Last login" with right time comes from sshd itself (second in my case). It means that print_pam_messages() remains silent in your case but be verbose form my case for unknown reason. Is there some way to debug print_pam_messages() deeply I can turn on? BTW, double-testes options.print_lastlog looks suspiciuos. For what print_pam_messages() used here? It is unclear to me. #ifdef USE_PAM if (options.print_lastlog && !is_pam_password_change_required()) print_pam_messages(); #endif /* USE_PAM */ ... #ifndef NO_SSH_LASTLOG if (options.print_lastlog && s->last_login_time != 0) { ... printf("Last login: %s from %s\r\n", time_string, -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message