On 10/08/2023 13:07, Bruno Haible wrote:
In the past, coreutils did not need to pass the option READ_UTMP_USER_PROCESS
to read_utmp(), since it was testing IS_USER_PROCESS of each entry anyway.
The only effect would have been to save some amount of memory allocation.
But now, it also saves from
the
boot time. Thus it is worth using now.
Find attached a patch.
Bruno
>From bb38f6e5cc9fbf600f698866e268cdcfba636ea6 Mon Sep 17 00:00:00 2001
From: Bruno Haible
Date: Thu, 10 Aug 2023 13:50:57 +0200
Subject: [PATCH] pinky,users,who: Optimize read_utmp invocation
When we are only interes