From: Samuel Thibault Date: Tue, 31 Aug 2021 17:41:02 +0000 (+0200) Subject: hurd msync: Drop bogus test X-Git-Tag: glibc-2.35~548 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60dfb30976761c9b20a22f18356e0c3e581f5394;p=thirdparty%2Fglibc.git hurd msync: Drop bogus test MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC are set. --- diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c index a1244e42e2b..115d30ec41d 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;