On Sat, 20 Jul 2024 17:28:59 +0200 "Francesco Poli (wintermute)" <invernom...@paranoici.org> wrote:
Dates and times seem to be completely wrong, but the system clock is OK:
Hello, I just tried to debug the issue and found this is caused by the line below. src/wtmpdb.c: 365 uint64_t login_t = strtoul(argv[3], &endptr, 10); 366 if ((errno == ERANGE && login_t == UINT64_MAX) Unfortuantely returns the strtoul an overflow error which gets through unnoticed because strtoul returns ULONG_MAX instead of UINT64_MAX. And found this issue got reported already upstream and it got fixed a few hours ago using strtoull by this commit (and new release v0.13.0): https://github.com/thkukuk/wtmpdb/commit/f3ca146227ecca42ec1562d60fa4856fbc0ca4af Kind regards, Bernhard