#
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.
|
#
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.
|
#
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.
|
#
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 |
|
28-Oct-2001 |
dillon |
Fix ctime(&int) due to change to lastlog->ll_time
|
#
78719 |
|
24-Jun-2001 |
dd |
Include stdlib.h for exit(3).
Submitted by: Mike Barcroft <mike@q9media.com>
|
#
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
|