From e1da74b756b1ff720599e9aeccdace517b0feb05 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 14 Aug 2023 12:14:38 +0200 Subject: [PATCH] readutmp, boot-time: Fix build on 32-bit glibc (regression 2023-08-11). Reported by Andreas Schwab in . * lib/readutmp.h (struct utmpx32): Reference __UT_NAMESIZE, not __UT_USERSIZE. --- ChangeLog | 8 ++++++++ lib/readutmp.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f96ebeaa34..76d95bebaf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2023-08-14 Bruno Haible + + readutmp, boot-time: Fix build on 32-bit glibc (regression 2023-08-11). + Reported by Andreas Schwab in + . + * lib/readutmp.h (struct utmpx32): Reference __UT_NAMESIZE, not + __UT_USERSIZE. + 2023-08-13 Bruno Haible stdint: Fix configure test result with gcc 4.7 or 4.8. diff --git a/lib/readutmp.h b/lib/readutmp.h index f7cad36d44..1fbe29d86f 100644 --- a/lib/readutmp.h +++ b/lib/readutmp.h @@ -142,7 +142,7 @@ struct utmpx32 pid_t ut_pid; /* Process ID of login process. */ char ut_line[__UT_LINESIZE]; /* Devicename. */ char ut_id[4]; /* Inittab ID. */ - char ut_user[__UT_USERSIZE]; /* Username. */ + char ut_user[__UT_NAMESIZE]; /* Username. */ char ut_host[__UT_HOSTSIZE]; /* Hostname for remote login. */ struct __exit_status ut_exit; /* Exit status of a process marked as DEAD_PROCESS. */ -- 2.39.5