about summary refs log tree commit diff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-31 19:41:02 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-08-31 19:41:02 +0200
commit60dfb30976761c9b20a22f18356e0c3e581f5394 (patch)
treec62bfb7f3b0ca5958555598d954fc5293ffce1a3 /sysdeps/mach/hurd
parente2930d8777c0331b5882e27cbb53f3cf8516a62d (diff)
downloadglibc-60dfb30976761c9b20a22f18356e0c3e581f5394.tar.gz
glibc-60dfb30976761c9b20a22f18356e0c3e581f5394.tar.xz
glibc-60dfb30976761c9b20a22f18356e0c3e581f5394.zip
hurd msync: Drop bogus test
MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC
are set.
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/msync.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c
index a1244e42e2..115d30ec41 100644
--- a/sysdeps/mach/hurd/msync.c
+++ b/sysdeps/mach/hurd/msync.c
@@ -47,9 +47,6 @@ msync (void *addr, size_t length, int flags)
   kern_return_t err;
   int cancel_oldtype;
 
-  if ((flags & (MS_SYNC | MS_ASYNC)) == (MS_SYNC | MS_ASYNC))
-    return __hurd_fail (EINVAL);
-
   while (cur < target)
     {
       vm_address_t begin = cur;