History log of /freebsd-10.0-release/usr.sbin/lastlogin/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


222767 06-Jun-2011 ed

Allow custom files to be opened and allow sorting by timestamp.

While implementing a tool to import lastlog entries into utmpx, I
noticed lastlogin doesn't allow custom database files to be opened. Add
a -f switch to support this. Also, add -r and -t similar to ls(1),
ruptime(1), etc. where you can sort entries by timestamp and reverse
them. This allows you to spot active/idle users more easily.


206472 11-Apr-2010 ed

Don't forget to catch realloc() errors.


206471 11-Apr-2010 ed

Alphabetically sort the output of lastlogin(8).

According to the manpage, the entries have to be sorted by uid. This is
no longer possible, since our utmpx implementation is completely unaware
of user IDs. You can safely add entries for multiple users sharing the
same uid.

Make the output less random by sorting everything by name.


205365 20-Mar-2010 ed

Chop off excessive long hostnames to keep the table structure intact.

This makes lastlogin(8) use exactly the same printf format as last(1).


202928 24-Jan-2010 ed

Remove unneeded setpassent() calls.

lastlogin no longer requires the use of the passwd database.


202756 21-Jan-2010 ed

Remove stale references to utmp(5) and its corresponding filenames.

I removed utmp and its manpage, but not other manpages referring to it.


202205 13-Jan-2010 ed

Port lastlogin(8) to utmpx.

While there, fix a bug I introduced previously. We must reopen the
database for each username passed on the command line. We must rewind
the database and search from the beginning.


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


201227 29-Dec-2009 ed

ANSIfy almost all applications that use WARNS=6.

I was considering committing all these patches one by one, but as
discussed with brooks@, there is no need to do this. If we ever
need/want to merge these changes back, it is still possible to do this
per application.


201033 26-Dec-2009 ed

Several refinements to libulog's API.

- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.


200303 09-Dec-2009 ed

Port lastlogin(1) to libulog.

Just use ulog_getutxuser() to obtain lastlog records or ulog_getutxent()
to browse through all of them.


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


99968 14-Jul-2002 charnier

The .Nm utility


99800 11-Jul-2002 alfred

de-__P()


99604 08-Jul-2002 bde

Fixed some world breakage caused by not updating clients when <timeconv.h>
was split off from <time.h>. This became fatal here when -Werror was
reenabled.


98069 09-Jun-2002 mike

Don't depend on <pwd.h> to bogusly include <sys/types.h>.


89572 19-Jan-2002 dillon

I've been meaning to do this for a while. Add an underscore to the
time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx()
instead of time_to_xxx(), to make it more obvious that these are
stopgap functions & placemarkers and not meant to create a defacto
standard. They will eventually be replaced when a real standard
comes out of committee.


85651 29-Oct-2001 dillon

Fix ctime(&int) due to change to lastlog->ll_time


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


79011 30-Jun-2001 dd

Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
where necessary.

Submitted by: Mike Barcroft <mike@q9media.com>


78719 24-Jun-2001 dd

Include stdlib.h for exit(3).

Submitted by: Mike Barcroft <mike@q9media.com>


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


69851 11-Dec-2000 ru

mdoc(7) cosmetics.

Submitted by: sheldonh


69828 10-Dec-2000 charnier

Remove unused #includes, duplicate $FreeBSD$ and $NetBSD$ definitions.

Reviewed by: Ruslan Ermilov <ru@FreeBSD.org>


68723 14-Nov-2000 ru

Added the lastlogin utility.

Obtained from: NetBSD