From owner-freebsd-current Mon Apr 22 13:34: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 7238237B41A for ; Mon, 22 Apr 2002 13:33:56 -0700 (PDT) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.2/8.12.2) with ESMTP id g3MKW4iJ030994; Tue, 23 Apr 2002 00:32:07 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.3/8.12.2/Submit) id g3MKW3Rr030993; Tue, 23 Apr 2002 00:32:03 +0400 (MSD) Date: Tue, 23 Apr 2002 00:31:59 +0400 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: Bill Fenner , current@FreeBSD.ORG Subject: Re: PAM & OpenSSH: two incorrect "last login" Message-ID: <20020422203156.GA30906@nagual.pp.ru> References: <20020420011633.GA66468@nagual.pp.ru> <200204212015.NAA06317@windsor.research.att.com> <200204220822.BAA11918@windsor.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i 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 Mon, Apr 22, 2002 at 14:07:50 +0200, Dag-Erling Smorgrav wrote: > Bill Fenner writes: > > You could either pretend that yflag was not set (what ache was > > suggesting) or set yflag if the year of the last login was not > > this year (possibly more useful). > > ...or always print the year. Does anybody have any patches? :) IMHO always printing year in pam_lastlog (like unpatched sshd does) will not harm. L10n here currently is not useful for both plain login and sshd because environment from where LANG may come not yet activated at this moment. The code must be moved after environment activating first, but because it is the very first print, other prints like motd must be moved too. -- 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