Date: Sat, 20 Apr 2002 05:16:35 +0400 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: current@freebsd.org, des@freebsd.org Subject: PAM & OpenSSH: two incorrect "last login" Message-ID: <20020420011633.GA66468@nagual.pp.ru>
next in thread | raw e-mail | index | archive | help
I got this TWO last login lines with recent -current SSH+PAM: -------------------------- Last login: Sat Apr 20 04:50:45 from hermes.dialup.ru Last login: Sat Apr 20 04:56:06 2002 from hermes.dialup.ru Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 ... -------------------------- The second one is semi-correct, excepting year not needed here. It is original SSH bug easy to fix, just print first 19 characters and not whole ctime() line in session.c But what about first one? Apparently it comes from pam_lastlog.so, but why there is \n in the middle? Looking at pam_lastlog.c sources I not find \n there. It seems it is inserted afterwards somehow. Notice the second \n after first lastlog line, it must not be there too. Please fix those two \n's. BTW, ONE lastlog line is enough. Please either remove pam_lastlog.so or comment "#ifndef USE_PAM" SSH one. -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020420011633.GA66468>