]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[AArch64][BZ 18400] fix elf_prpsinfo in procfs.h
authorSzabolcs Nagy <nsz@port70.net>
Thu, 9 Jul 2015 08:39:51 +0000 (09:39 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 9 Jul 2015 08:39:51 +0000 (09:39 +0100)
Kernel uses int pr_uid, pr_gid, but glibc used unsigned short.

This is an ABI breaking change, but the size and alignment of
the struct and the layout of other members is not changed and
there is no known usage of pr_uid and pr_gid so it is expected
to be safe.

[BZ #18400]
* sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
Fix pr_uid and pr_gid members.

ChangeLog
sysdeps/unix/sysv/linux/aarch64/sys/procfs.h

index 71ec1f3c2ec0fd83e14109a1fda8ecba972ce926..413a1c80a7047b652052e740220d1277e409105b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
+       Fix pr_uid and pr_gid members.
+
 2015-07-08  Roland McGrath  <roland@hack.frob.com>
 
        [BZ #18383]
index cf5e76c7f5ed896bac3382af6501e0492ec65610..ecc65ab0cd30ed1c8a3637b19732e1a0835e933d 100644 (file)
@@ -91,8 +91,8 @@ struct elf_prpsinfo
     char pr_zomb;                      /* Zombie.  */
     char pr_nice;                      /* Nice val.  */
     unsigned long int pr_flag;         /* Flags.  */
-    unsigned short int pr_uid;
-    unsigned short int pr_gid;
+    unsigned int pr_uid;
+    unsigned int pr_gid;
     int pr_pid, pr_ppid, pr_pgrp, pr_sid;
     /* Lots missing */
     char pr_fname[16];                 /* Filename of executable.  */