]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: use reserved name __key in pkey_get [BZ #22797]
authorIgor Gnatenko <ignatenko@redhat.com>
Wed, 7 Feb 2018 12:53:10 +0000 (13:53 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 7 Feb 2018 12:53:10 +0000 (13:53 +0100)
_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)

ChangeLog
NEWS
sysdeps/unix/sysv/linux/bits/mman-shared.h

index 65ebfbcb521a2c200e8f25c0abb9bf7a4633389e..cfe43e3bc066d259b9ad477ff1203266761bacd5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
+
+       [BZ #22797]
+       * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
+       missing second underscore to parameter name.
+
 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #22638]
diff --git a/NEWS b/NEWS
index 4bb08b1dbf1ae49408b6ecdfe686a941cb363ec9..1e4cb10612d980ec27f2927ade850967bcf267e3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ The following bugs are resolved with this release:
 
   [22638] sparc: static binaries are broken if glibc is built by gcc
     configured with --enable-default-pie
+  [22797] Linux: use reserved name __key in pkey_get
 
 \f
 Version 2.27
index 7715e680caa9551a24ea02e8a7d611c4f6509de4..d15ba95c9dc6ee597bded16772d525ff17027a20 100644 (file)
@@ -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.  */