From owner-cvs-src-old@FreeBSD.ORG Tue Jan 19 19:53:27 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7943410656C3 for ; Tue, 19 Jan 2010 19:53:27 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 67C738FC1C for ; Tue, 19 Jan 2010 19:53:27 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0JJrRAq007790 for ; Tue, 19 Jan 2010 19:53:27 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0JJrR2D007789 for cvs-src-old@freebsd.org; Tue, 19 Jan 2010 19:53:27 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <201001191953.o0JJrR2D007789@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Tue, 19 Jan 2010 19:53:05 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/last last.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 19:53:27 -0000 ed 2010-01-19 19:53:05 UTC FreeBSD src repository Modified files: usr.bin/last last.c Log: SVN rev 202643 on 2010-01-19 19:53:05Z by ed Make last(1) display the full log file. I must have misread when I ported the original last(1) source code. Instead of only processing the last 1024 entries, it reads them in in chucks of 1024 entries at a time. Unfortunately we cannot walk through the log file in reverse order, which means we have to allocate a piece of memory to hold all the entries. Call realloc() for each 128 entries we read. Reported by: Andrzej Tobola Revision Changes Path 1.36 +9 -10 src/usr.bin/last/last.c