]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp, boot-time: Fix build on 32-bit glibc (regression 2023-08-11).
authorBruno Haible <bruno@clisp.org>
Mon, 14 Aug 2023 10:14:38 +0000 (12:14 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Aug 2023 10:16:43 +0000 (12:16 +0200)
Reported by Andreas Schwab <schwab@suse.de> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00125.html>.

* lib/readutmp.h (struct utmpx32): Reference __UT_NAMESIZE, not
__UT_USERSIZE.

ChangeLog
lib/readutmp.h

index f96ebeaa346285ee2720d7a128c4f1fbc2c6580a..76d95bebaf064dd5e0e61b53ca1f935332a761f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-08-14  Bruno Haible  <bruno@clisp.org>
+
+       readutmp, boot-time: Fix build on 32-bit glibc (regression 2023-08-11).
+       Reported by Andreas Schwab <schwab@suse.de> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00125.html>.
+       * lib/readutmp.h (struct utmpx32): Reference __UT_NAMESIZE, not
+       __UT_USERSIZE.
+
 2023-08-13  Bruno Haible  <bruno@clisp.org>
 
        stdint: Fix configure test result with gcc 4.7 or 4.8.
index f7cad36d4453ad627cfea247053a60b738a0541a..1fbe29d86fb56726961f04f0a86f3f6c21217bfb 100644 (file)
@@ -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.  */