bug-coreutils
[Top][All Lists]
Advanced

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

bug#64937: "who" reports funny dates


From: Paul Eggert
Subject: bug#64937: "who" reports funny dates
Date: Thu, 3 Aug 2023 23:33:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Thanks for doing all that work. I looked into it, and found a problem: a command like "who /var/log/wtmp" stops working because the systemd emulation of read_utmp only supports plain "who" (rougnly equivalent to "who /var/run/utmp" on Fedora). So I installed it into coreutils, but the default is systemd is disabled. This should give people time to experiment with it.

Thorsten, is there some way to get the equivalent of /var/log/wtmp with systemd?

Also, I simplified the use of the new readutmp interface a bit, by going back to the old way where you simply call 'free' once to free the storage. Although I toyed with the idea of simplifying readutmp.h further, by moving most of it into readutmp.c and having just struct gl_utmp public (this would simplify coreutils quite a bit), I ran out of time and patience and decided to ship what I had. So I nstalled the first ten attached patches into Gnulib, and the last patch into coreutils.

I haven't tested this with the latest systemd so there could well be typos in that part of the code.

Attachment: 0001-readutmp-simplify-extract_trimmed_name-via-ximemdup0.patch
Description: Text Data

Attachment: 0002-readutmp-go-back-to-simple-free.patch
Description: Text Data

Attachment: 0003-readutmp-fix-idx_t-FIXME-in-API.patch
Description: Text Data

Attachment: 0004-readutmp-pacify-Wstrict-prototypes.patch
Description: Text Data

Attachment: 0005-readutmp-fix-indentation.patch
Description: Text Data

Attachment: 0006-readutmp-switch-new-struct-to-struct-timespec.patch
Description: Text Data

Attachment: 0007-readutmp-systemd-supports-only-UTMP_FILE.patch
Description: Text Data

Attachment: 0008-readutmp-fix-comments.patch
Description: Text Data

Attachment: 0009-m4-systemd.m4-Fix-help-lineup.patch
Description: Text Data

Attachment: 0001-maint-Update-after-gnulib-module-readutmp-changed.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]