Re: boot-time: straighten code

2023-08-15 Thread Paul Eggert
On 2023-08-14 06:51, Bruno Haible wrote: But that is just a workaround. Is someone among the glibc people looking at the original glibc bughttps://sourceware.org/bugzilla/show_bug.cgi?id=30701 ? As far as I know, nobody is looking into it other than you and me. I think it's low priority as pe

Re: readutmp: Fix for platforms without ut_type

2023-08-15 Thread Bruno Haible
And here's a unit test, to protect against further occurrences of the same bug: 2023-08-15 Bruno Haible readutmp tests: Add test against today's bug. * tests/test-readutmp.c (main): Verify that there is exactly one BOOT_TIME entry. diff --git a/tests/test-readutmp.c b

Re: boot-time: straighten code

2023-08-15 Thread Bruno Haible
Paul Eggert wrote: > I installed the attached patch into Emacs > master, which you should be able to test via: > > git clone https://git.savannah.gnu.org/git/emacs.git > cd emacs > ./autogen.sh > ./configure > make > src/emacs > > Please give it a try, especia

readutmp: Fix for platforms without ut_type

2023-08-15 Thread Bruno Haible
On OpenBSD, 'test-readutmp' prints two entries of type BOOT_TIME. The second one should not be present, since it is only a fallback. The cause is that have_boot_time always returns false. This patch fixes it. 2023-08-15 Bruno Haible readutmp: Fix for platforms without ut_type (regres