diff options
author | gad <gad@FreeBSD.org> | 2004-03-08 20:02:23 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-08 20:02:23 +0000 |
commit | ed1fac1d1e69ddd592d995c02c0d042c199ced61 (patch) | |
tree | 45a0ec4843ed07ece88e3810f00def5ede45e169 /usr.sbin/pw/fileupd.c | |
parent | e7d237f567f13bd1c2a97b48e9d7dce0049b9a69 (diff) | |
download | FreeBSD-src-ed1fac1d1e69ddd592d995c02c0d042c199ced61.zip FreeBSD-src-ed1fac1d1e69ddd592d995c02c0d042c199ced61.tar.gz |
Add a check for wtmp records which have invalid values for ut_time. Wtmp
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
Diffstat (limited to 'usr.sbin/pw/fileupd.c')
0 files changed, 0 insertions, 0 deletions