| History log of /src/usr.sbin/lastlogin/lastlogin.c |
| Revision | | Date | Author | Comments |
| 1.20 |
| 07-May-2020 |
wiz | Sync usage with man page.
|
| 1.19 |
| 06-May-2020 |
kim | Output records in original order
Append to the list of output records instead of pushing on it, so we don't reverse the order of records (when not sorting).
|
| 1.18 |
| 06-May-2020 |
kim | Use memcpy for copying out lastlog and lastlogx text
Lastlog and lastlogx text fields are not NUL-terminated when original data is truncated.
|
| 1.17 |
| 06-May-2020 |
kim | If the passwd entry is not found for a lastlogx entry, cons up a fake struct passwd where pw_name is the numeric uid in parentheses. This was already implemented for lastlog entries in revision 1.13.
If -n is specified more than once, also print the user numerically (ie, uid instead of username) for lastlog entries. This was already implemented for lastlogx entries in revision 1.13.
Reorder the lastlogx host name numeric condition so it better matches the user name numeric condition.
|
| 1.16 |
| 06-May-2020 |
kim | Size output columns dynamically by default to fit contents.
|
| 1.15 |
| 31-Aug-2011 |
joerg | branches: 1.15.44; __dead + ANSIfy
|
| 1.14 |
| 16-Apr-2009 |
lukem | Fix WARNS=4 (-Wshadow -Wcast-qual)
|
| 1.13 |
| 09-Apr-2005 |
atatat | branches: 1.13.28; If the passwd entry is not found for a lastlog entry, cons up a fake struct passwd where pw_name is the numeric uid in parentheses.
If -n is specified more than once, also print the user numerically (ie, uid instead of username).
|
| 1.12 |
| 14-Jan-2005 |
martin | Avoid a NULL pointer dereference. From Karim Ayad in PR bin/28958.
|
| 1.11 |
| 19-Nov-2004 |
christos | Use sockaddr_snprintf()
|
| 1.10 |
| 13-Nov-2004 |
he | The size_t type isn't necessarily an int (on arm it's an unsigned int), so add casts to int before using as a printf field width specifier.
|
| 1.9 |
| 11-Nov-2004 |
christos | Add support for lastlogx output. Unfortunately not many programs use it yet.
|
| 1.8 |
| 16-Dec-2003 |
wulf | branches: 1.8.4; Fixed a bug that made lastlogin ignore the first user argument
|
| 1.7 |
| 28-Aug-2003 |
elric | Add sorting based on last login time via -t (most recent first a la ls(1)). Add reverse of current sort via -r (like ls(1) as well.) Add a couple of lines of documentation to the man page about the two new options.
|
| 1.6 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
| 1.5 |
| 04-Jul-2000 |
matt | More #include <stdlib.h> string, etc. cleanup
|
| 1.4 |
| 03-Feb-1998 |
perry | change includes to fix compiler warning
|
| 1.3 |
| 17-Oct-1997 |
lukem | WARNSify
|
| 1.2 |
| 27-Mar-1997 |
christos | Don't keep trying getpwuid(0) when ll_time == 0! This brings down the execution time from 5 minutes -> 1 second in our password file.
|
| 1.1 |
| 11-Feb-1997 |
phil | branches: 1.1.1; Initial revision
|
| 1.1.1.1 |
| 11-Feb-1997 |
phil | Import of lastlogin from John M. Vinopal, from PR #1932. RCS ID changes from PR. Updated man page for NetBSD 1.2 instead of NetBSD 1.1. If this program is merged with last(1), then it will be removed.
|
| 1.8.4.1 |
| 17-Apr-2005 |
tron | Pull up revision 1.12 via patch (requested by martin in ticket #1091): Avoid a NULL pointer dereference. From Karim Ayad in PR bin/28958.
|
| 1.13.28.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.15.44.1 |
| 07-May-2020 |
martin | Pull up following revision(s) (requested by kim in ticket #893):
usr.sbin/lastlogin/lastlogin.c: revision 1.16 usr.sbin/lastlogin/lastlogin.c: revision 1.17 usr.sbin/lastlogin/lastlogin.c: revision 1.18 usr.sbin/lastlogin/lastlogin.c: revision 1.19 usr.sbin/lastlogin/lastlogin.c: revision 1.20 usr.sbin/lastlogin/lastlogin.8: revision 1.13 usr.sbin/lastlogin/lastlogin.8: revision 1.14
Size output columns dynamically by default to fit contents.
If the passwd entry is not found for a lastlogx entry, cons up a fake struct passwd where pw_name is the numeric uid in parentheses. This was already implemented for lastlog entries in revision 1.13.
If -n is specified more than once, also print the user numerically (ie, uid instead of username) for lastlog entries. This was already implemented for lastlogx entries in revision 1.13.
Reorder the lastlogx host name numeric condition so it better matches the user name numeric condition.
Use memcpy for copying out lastlog and lastlogx text Lastlog and lastlogx text fields are not NUL-terminated when original data is truncated.
Output records in original order
Append to the list of output records instead of pushing on it, so we don't reverse the order of records (when not sorting).
New sentence, new line.
Sync usage with man page.
|