diff options
Diffstat (limited to 'source/l/glibc/glibc.pkey_get.56170e0.diff')
-rw-r--r-- | source/l/glibc/glibc.pkey_get.56170e0.diff | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/l/glibc/glibc.pkey_get.56170e0.diff b/source/l/glibc/glibc.pkey_get.56170e0.diff new file mode 100644 index 00000000..d7111fba --- /dev/null +++ b/source/l/glibc/glibc.pkey_get.56170e0.diff @@ -0,0 +1,28 @@ +From 56170e064e2b21ce204f0817733e92f1730541ea Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko <ignatenko@redhat.com> +Date: Wed, 7 Feb 2018 13:53:10 +0100 +Subject: [PATCH] Linux: use reserved name __key in pkey_get [BZ #22797] + +_key is not reserved name and we should avoid using that. It seems that +it was simple typo when pkey_* was implemented. + +(cherry picked from commit 388ff7bd0d57d7061fdd39a2f26f65687e8058da) +--- + sysdeps/unix/sysv/linux/bits/mman-shared.h | 2 +- + 1 files changed, 8 insertions(+), 1 deletion(-) + +diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h +index 7715e68..d15ba95 100644 +--- a/sysdeps/unix/sysv/linux/bits/mman-shared.h ++++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h +@@ -61,7 +61,7 @@ int pkey_set (int __key, unsigned int __access_rights) __THROW; + + /* Return the access rights for the current thread for KEY, which must + have been allocated using pkey_alloc. */ +-int pkey_get (int _key) __THROW; ++int pkey_get (int __key) __THROW; + + /* Free an allocated protection key, which must have been allocated + using pkey_alloc. */ +-- +2.9.3 |