From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9076 invoked by alias); 4 Jan 2002 21:34:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 9029 invoked from network); 4 Jan 2002 21:34:15 -0000 Received: from unknown (HELO tpamail2.bdi.gte.com) (192.76.82.136) by sources.redhat.com with SMTP; 4 Jan 2002 21:34:15 -0000 Received: from mail2.irngtx.tel.gte.com ([143.91.100.196]) by tpamail2.bdi.gte.com (8.9.3/8.9.3) with ESMTP id QAA14539 for ; Fri, 4 Jan 2002 16:34:13 -0500 (EST) Received: from arcjle ([143.91.153.88]) by mail2.irngtx.tel.gte.com (8.9.3/8.9.3) with SMTP id PAA21020 for ; Fri, 4 Jan 2002 15:34:13 -0600 (CST) Message-ID: <000701c19567$6df7a1c0$58995b8f@irngtx.tel.gte.com> From: "Joshua" To: Subject: login 1.4-2 LASTLOG file mismatch Date: Fri, 04 Jan 2002 13:34:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-SW-Source: 2002-01/txt/msg00184.txt.bz2 All, I think I've found a small bug in the login program code versus the man page regarding the last login feature. The man page indicates that the file necessary for storing the last login information is /var/log/lastlog, and this file was actually created with zero length automatically. But the code references the file location as /usr/adm/lastlog, which is not created automatically. When I created a zero length file /usr/adm/lastlog, the login program now shows the last login date, time, and source. Now, after the first use of the /usr/adm/lastlog file, it's size grew to 3,048,420 bytes! What's in that file? Is that normal? As a side question, when I compile Cygwin programs locally, they seem to be much larger than the binaries installed by setup.exe. For example, login installed by setup.exe is 11,776 bytes; the login that I compiled myself is 44,945 bytes. I made no changes whatsoever to the source code, and used the makefile that came in the tarball. In checking the archives, I saw one cryptic reference to using 'strip' but I don't really understand that reference. BCNU//jle -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/