Date: Tue, 19 Jan 2010 19:53:05 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/last last.c Message-ID: <201001191953.o0JJrR2D007789@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <ato iem pw edu pl> Revision Changes Path 1.36 +9 -10 src/usr.bin/last/last.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001191953.o0JJrR2D007789>