summaryrefslogtreecommitdiff
path: root/usr.bin/last
AgeCommit message (Collapse)Author
2015-10-29pledge "stdio rpath".Theo de Raadt
2015-08-20Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopeTheo de Raadt
ok krw millert
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-03-14use ctime_r to avoid a re-entrancy signal raceTheo de Raadt
ok millert
2015-02-08in getopt() blocks, stop incrementing flag variable which are supposedTheo de Raadt
to just be 0/1 ok miod florian
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-12-09init crmsg to something so it doesn't crash on invalid wtmp files.Ted Unangst
from david higgs
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-04-22Instead of special casing ftpd, uucpd and others that may have entriesOkan Demirmen
in wtmp, go the other way and exclude entries we know ('console' and 'tty') from pid stripping, then strip the rest. idea, feedback and ok millert@
2014-04-17remove special case for uucp entries.Okan Demirmen
ok guenther
2014-04-17Correct some time_t printing; factor out a grotty block while herePhilip Guenther
Based on a diff from Arto Jonsson (ajonsson (at) kapsi.fi) ok deraadt@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-02-18Fix after last commit: add missing header.Federico G. Schwindt
sthen@ ok.
2013-02-12Reflect the -f option in last's output. Original diff from Jacob L. Leifman.lum
Other feedback from Callum Davies and sthen@ ok mpi@ ian@ kettenis@
2011-12-31Fix HISTORY and AUTHORS of another 1BSD utility that i missed at first;Ingo Schwarze
information found on the CSRG archive CDs, 1bsd directory and SCCS files; feedback and ok sobrado@, ok jmc@.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-05-01add missing header needed by isdigit()Charles Longeau
ok otto@ millert@ gilles@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-06discuss consistently "the Epoch";Jason McIntyre
2006-10-27expand the description of -d somewhat;Jason McIntyre
2006-10-27- update Nd somewhatJason McIntyre
- missing comma
2006-10-27- simplify and sort synopsisJason McIntyre
- sort options - some minor text tweaks - sync usage()
2005-11-14fix fd leak; then i got a bit carried away making the code prettierTheo de Raadt
2005-07-01Replace numeric argument handling (e.g. last -30) with something thatTodd C. Miller
can deal with mixer number and normal arguments, adapted from my code in diff(1). OK deraadt@
2004-06-16Add a new -n option that replaces the old -number option (which nowTodd C. Miller
only exists for backwards compat). Based on a diff from robert@; OK robert@ and deraadt@
2004-01-08Fix uninitialized variable. From Ilya Voronin <ivoronin at trancom dot ru>Otto Moerbeek
2003-11-09Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu>Otto Moerbeek
2003-08-14make 9-char login names not stretch the line; millert okTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-29avoid more signal racesTheo de Raadt
2003-04-25minor tweak to error message, from Eric in pr3235Ted Unangst
2003-04-14fix time spec even better; emmf26@umr.eduTheo de Raadt
2003-04-06make usage exactly like in the man page; andrushock@korovino.netTheo de Raadt
2003-04-05simple snprintf and strlcpy; henning okTheo de Raadt
2002-09-23Add missing includes, breaks and semicolons to appease gcc3; David KrauseTodd C. Miller
deraadt@ OK
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-04fix a typo; from Sam Smith <S@mSmith.net>Michael Shalayeff
2001-11-05mark a zone of signal racesTheo de Raadt
2001-07-18-Wall cleanupPeter Valchev
2001-07-12first pass at a -Wall cleanupTheo de Raadt
2001-02-06Change host width to 24 so last produces one line per user; deraadt ok.Federico G. Schwindt
2001-01-31move utmp to large format, usernames to 32 chars; downsjTheo de Raadt
2000-12-17data base -> databaseTodd C. Miller
2000-12-12incorrect time specification; noted by sigh@kuzirabekon.econ.nagasaki-u.ac.jpTheo de Raadt
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-06-07correct description; sarnold@intertrust.comTheo de Raadt
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-08Various cleanups and improvements.Aaron Campbell
2000-03-06Some section re-ordering.Aaron Campbell