diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-19 02:17:22 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-19 02:17:22 +0100 |
commit | bbb7dc8475b5c06b3e5d1dcf51a1ec6e045bfc6f (patch) | |
tree | 9740b0d00d243f62179bc2afa2085c018957e8db /sysdeps | |
parent | dfa6216f24fabc471835a634aeb58fe7deef47d1 (diff) | |
download | glibc-bbb7dc8475b5c06b3e5d1dcf51a1ec6e045bfc6f.tar.gz glibc-bbb7dc8475b5c06b3e5d1dcf51a1ec6e045bfc6f.tar.xz glibc-bbb7dc8475b5c06b3e5d1dcf51a1ec6e045bfc6f.zip |
hurd: Fix 64bit fcntl lock implementation
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd' values in the 64bit value cases.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/mach/hurd/fcntl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/fcntl.c b/sysdeps/mach/hurd/fcntl.c index f7f9abce03..663dcb0090 100644 --- a/sysdeps/mach/hurd/fcntl.c +++ b/sysdeps/mach/hurd/fcntl.c @@ -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: |