Up to [cvs.NetBSD.org] / src / usr.sbin / lastlogin
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.15.44.1 / (download) - annotate - [select for diffs], Thu May 7 18:19:28 2020 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Changes since 1.15: +157 -72
lines
Diff to previous 1.15 (colored) next main 1.16 (colored)
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.
Revision 1.20 / (download) - annotate - [select for diffs], Thu May 7 12:52:40 2020 UTC (3 years ago) by wiz
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
HEAD
Changes since 1.19: +4 -4
lines
Diff to previous 1.19 (colored)
Sync usage with man page.
Revision 1.19 / (download) - annotate - [select for diffs], Wed May 6 19:45:39 2020 UTC (3 years ago) by kim
Branch: MAIN
Changes since 1.18: +11 -12
lines
Diff to previous 1.18 (colored)
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).
Revision 1.18 / (download) - annotate - [select for diffs], Wed May 6 19:31:32 2020 UTC (3 years ago) by kim
Branch: MAIN
Changes since 1.17: +12 -6
lines
Diff to previous 1.17 (colored)
Use memcpy for copying out lastlog and lastlogx text Lastlog and lastlogx text fields are not NUL-terminated when original data is truncated.
Revision 1.17 / (download) - annotate - [select for diffs], Wed May 6 13:47:39 2020 UTC (3 years ago) by kim
Branch: MAIN
Changes since 1.16: +15 -9
lines
Diff to previous 1.16 (colored)
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.
Revision 1.16 / (download) - annotate - [select for diffs], Wed May 6 11:58:33 2020 UTC (3 years ago) by kim
Branch: MAIN
Changes since 1.15: +131 -57
lines
Diff to previous 1.15 (colored)
Size output columns dynamically by default to fit contents.
Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 31 13:31:29 2011 UTC (11 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8,
yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
localcount-20160914,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Branch point for: netbsd-9
Changes since 1.14: +4 -7
lines
Diff to previous 1.14 (colored)
__dead + ANSIfy
Revision 1.13.28.1 / (download) - annotate - [select for diffs], Wed May 13 19:20:27 2009 UTC (14 years ago) by jym
Branch: jym-xensuspend
Changes since 1.13: +12 -13
lines
Diff to previous 1.13 (colored) next main 1.14 (colored)
Sync with HEAD. Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 16 05:59:56 2009 UTC (14 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.13: +12 -13
lines
Diff to previous 1.13 (colored)
Fix WARNS=4 (-Wshadow -Wcast-qual)
Revision 1.8.4.1 / (download) - annotate - [select for diffs], Sun Apr 17 13:29:32 2005 UTC (18 years, 1 month ago) by tron
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Changes since 1.8: +3 -3
lines
Diff to previous 1.8 (colored) next main 1.9 (colored)
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.
Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 9 02:13:20 2005 UTC (18 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
mjf-devfs2-base,
mjf-devfs2,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-nbase,
matt-armv6-base,
matt-armv6,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: jym-xensuspend
Changes since 1.12: +15 -5
lines
Diff to previous 1.12 (colored)
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).
Revision 1.12 / (download) - annotate - [select for diffs], Fri Jan 14 07:41:34 2005 UTC (18 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Changes since 1.11: +3 -3
lines
Diff to previous 1.11 (colored)
Avoid a NULL pointer dereference. From Karim Ayad in PR bin/28958.
Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 19 21:43:40 2004 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.10: +6 -22
lines
Diff to previous 1.10 (colored)
Use sockaddr_snprintf()
Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 13 00:11:03 2004 UTC (18 years, 6 months ago) by he
Branch: MAIN
Changes since 1.9: +5 -5
lines
Diff to previous 1.9 (colored)
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.
Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 11 20:17:36 2004 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.8: +267 -49
lines
Diff to previous 1.8 (colored)
Add support for lastlogx output. Unfortunately not many programs use it yet.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 16 15:40:29 2003 UTC (19 years, 5 months ago) by wulf
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2-0
Branch point for: netbsd-2
Changes since 1.7: +4 -4
lines
Diff to previous 1.7 (colored)
Fixed a bug that made lastlogin ignore the first user argument
Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 28 15:54:41 2003 UTC (19 years, 9 months ago) by elric
Branch: MAIN
Changes since 1.6: +127 -15
lines
Diff to previous 1.6 (colored)
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.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:44 2001 UTC (22 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
fvdl_fs64_base
Changes since 1.5: +3 -4
lines
Diff to previous 1.5 (colored)
convert to use getprogname()
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 4 20:27:37 2000 UTC (22 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.4: +3 -2
lines
Diff to previous 1.4 (colored)
More #include <stdlib.h> string, etc. cleanup
Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 3 04:45:35 1998 UTC (25 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5,
netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
minoura-xpg4dl-base,
minoura-xpg4dl,
comdex-fall-1999-base,
comdex-fall-1999
Changes since 1.3: +3 -3
lines
Diff to previous 1.3 (colored)
change includes to fix compiler warning
Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 17 10:18:41 1997 UTC (25 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3
Changes since 1.2: +12 -6
lines
Diff to previous 1.2 (colored)
WARNSify
Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 27 17:25:49 1997 UTC (26 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.1: +5 -6
lines
Diff to previous 1.1 (colored)
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.
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Tue Feb 11 18:36:51 1997 UTC (26 years, 3 months ago) by phil
Branch: John_M_Vinopal
CVS Tags: V1
Changes since 1.1: +0 -0
lines
Diff to previous 1.1 (colored)
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.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 11 18:36:51 1997 UTC (26 years, 3 months ago) by phil
Branch: MAIN
Initial revision