| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
When using ac -w, we must use the last timestamp to terminate the log
file. I accidentally removed this when I ported the code to use utmpx.
Reported by: avg
|
|
|
|
|
|
|
| |
Similar to last(1), it must compare ut_id's instead of TTYs to determine
whether a session has been terminated. It must also use ut_type to
determine the type of the login record instead figuring it out by
itself.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
records with time==0 get "the time of the last valid record", while records
where time goes backwards (compared to the previous record) are skipped.
Also prints a message saying how many records were changed or skipped due
to these checks. Check was inspired by a simpler check in OpenBSD's version.
This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac'
when running sparc64 with 64-bit time_t's. The real problem is whatever is
creating wtmp records with ut_time==0, of course, but I have not yet figured
out what is doing that.
Reviewed by: no screams from freebsd-sparc64 or bde
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
so the program compiles without errors or warnings when DEBUG is defined on
sparc64 with 64-bit time_t's. Also have debug statements include the year
when printing records from a different year than 'now'. Also print out a
special timestamp in debug statements when ut_time==0.
Reviewed by: freebsd-sparc, bde
MFC after: 2 weeks
|
|
|
|
| |
Noticed while comparing to OpenBSD version.
|
|
|
|
| |
diffs with OpenBSD. This causes no changes to the object produced.
|
| |
|
|
|
|
| |
Grumbled about by: bde
|
| |
|
|
|
|
|
| |
was split off from <time.h>. This became fatal here when -Werror was
reenabled.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
fixes.
|
|
|
|
|
|
| |
PR: bin/4204
Submitted by: Anatoly A. Orehovsky <tolik@www.tomsk.su>
MFC after: 4 weeks
|
|
|
|
|
| |
Obtained from: OpenBSD
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
Reviewed by: md5(1)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
legacy behaviour inherited from systems that don't have /dev/stdin.
Requested by: bde
|
|
|
|
|
|
|
| |
input may be used (e.g. gunzip -c /var/log/wtmp.Jan.gz | ac -w - ).
PR: 12467
Submitted by: wollman
|
|
|
|
|
|
|
|
|
| |
they may not be logins. The code for determining whether it is a pty
entry is broken.
PR: 7137
Reviewed by: phk
Submitted by: Tom Rush <tarush@mindspring.com>
|
|
|
|
|
| |
PR: 4732
Submitted by: Andrew Timonin <tim@pool1.convey.ru>
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
| |
|
|
|
|
| |
Submitted by: rlz@zeus.id.net
|
|
|