]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sysvipc: Fix compat msgctl (BZ#24570)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 14 May 2019 18:01:32 +0000 (15:01 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 20 May 2019 15:25:28 +0000 (12:25 -0300)
The __IPC64 flags is meant to be used to enable the new sysv struct
format when the architectures supports it (ARCH_WANT_IPC_PARSE_VERSION
config flag on Linux kernel).

This currently issue only affects alpha.

[BZ #24570]
* sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
usage.

ChangeLog
sysdeps/unix/sysv/linux/msgctl.c

index a7185b64e26fb039ab46a5bd65ece4be1b7a7f7f..2977d219fb75adbd1b3c69f6af093e87253ca804 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       [BZ #24570]
+       * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
+       usage.
+
 2019-05-20  Joseph Myers  <joseph@codesourcery.com>
 
        * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
index e4f78adda1aad7af1d0622723db15be61d01a583..2d4956768685f3e562a8cd8d48976012f1f4f2fe 100644 (file)
@@ -62,7 +62,7 @@ attribute_compat_text_section
 __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
 {
 #ifdef __ASSUME_DIRECT_SYSVIPC_SYSCALLS
-  return INLINE_SYSCALL_CALL (msgctl, msqid, cmd | __IPC_64, buf);
+  return INLINE_SYSCALL_CALL (msgctl, msqid, cmd, buf);
 #else
   return INLINE_SYSCALL_CALL (ipc, IPCOP_msgctl, msqid, cmd, 0, buf);
 #endif