* who.c (scan_entries): Account for guessed tty names (e.g.
'sshd pts/1') from the readutmp module when using the systemd backend.
* bootstrap.conf (gnulib_modules): Add str_endswith.
* News: Mention the bug fix.
Addresses https://bugzilla.redhat.com/
2343998
'ls -Z dir' would crash.
[bug introduced in coreutils-9.6]
+ 'who -m' now outputs entries for remote logins. Previously login
+ entries prefixed with the service (like "sshd") were not matched.
+ [bug introduced in coreutils-9.4]
+
* Noteworthy changes in release 9.6 (2025-01-17) [stable]
stdckdint-h
stdlib-safer
stpcpy
+ str_endswith
strdup-posix
strnlen
strnumcmp
while (n--)
{
if (!my_line_only
- || STREQ (ttyname_b, utmp_buf->ut_line))
+ || str_endswith (utmp_buf->ut_line, ttyname_b))
{
if (need_users && IS_USER_PROCESS (utmp_buf))
print_user (utmp_buf, boottime);