]> sourceware.org Git - glibc.git/commitdiff
hurd: Fix 64bit fcntl lock implementation
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 19 Dec 2018 01:17:22 +0000 (02:17 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 19 Dec 2018 01:17:22 +0000 (02:17 +0100)
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
values in the 64bit value cases.

ChangeLog
sysdeps/mach/hurd/fcntl.c

index 2945be5253430d9a4fc67d50b11979e5586f3c47..2ea7440b5a00ca3805ae0f875bb0d205d4c27843 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
+       values in the 64bit value cases.
+
 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
 
        * include/time.h
index f7f9abce03ef66914c5e66af8acea2be82cbcb39..663dcb009022382326f457f988532e8698b8cdbf 100644 (file)
@@ -158,13 +158,13 @@ __libc_fcntl (int fd, int cmd, ...)
        va_end (ap);
        switch (cmd)
          {
-         case F_GETLK:
+         case F_GETLK64:
            errno = ENOSYS;
            return -1;
-         case F_SETLKW:
+         case F_SETLKW64:
            wait = 1;
            /* FALLTHROUGH */
-         case F_SETLK:
+         case F_SETLK64:
            return __f_setlk (fd, fl->l_type, fl->l_whence,
                              fl->l_start, fl->l_len, wait);
          default:
This page took 0.064215 seconds and 5 git commands to generate.