atatat
26201c11b4
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).
2005-04-09 02:13:20 +00:00
martin
112b49392d
Avoid a NULL pointer dereference. From Karim Ayad in PR bin/28958.
2005-01-14 07:41:34 +00:00
christos
e1816fa337
Use sockaddr_snprintf()
2004-11-19 21:43:40 +00:00
he
b659e3ae0f
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.
2004-11-13 00:11:03 +00:00
christos
cd0f7573f1
Add support for lastlogx output. Unfortunately not many programs use it
...
yet.
2004-11-11 20:17:36 +00:00
wulf
4a58b169c3
Fixed a bug that made lastlogin ignore the first user argument
2003-12-16 15:40:29 +00:00
elric
6ab21fc010
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.
2003-08-28 15:54:41 +00:00
cgd
25bdbb661e
convert to use getprogname()
2001-02-19 23:22:40 +00:00
matt
3ab02a8704
More #include <stdlib.h> string, etc. cleanup
2000-07-04 20:27:35 +00:00
perry
a12002f43a
change includes to fix compiler warning
1998-02-03 04:39:14 +00:00
lukem
fcfec169df
WARNSify
1997-10-17 10:18:36 +00:00
christos
cc117ae3ac
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.
1997-03-27 17:25:49 +00:00
phil
38d6f43246
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.
1997-02-11 18:36:51 +00:00