Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/usr.sbin/lastlogin



Module Name:    src
Committed By:   martin
Date:           Thu May  7 18:19:28 UTC 2020

Modified Files:
        src/usr.sbin/lastlogin [netbsd-9]: lastlogin.8 lastlogin.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.12.48.1 src/usr.sbin/lastlogin/lastlogin.8
cvs rdiff -u -r1.15 -r1.15.44.1 src/usr.sbin/lastlogin/lastlogin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index