From: GNU Libc Maintainers Date: Sat, 27 Aug 2022 11:38:11 +0000 (+0100) Subject: git-msync X-Git-Tag: archive/raspbian/2.34-7+rpi1~1^2~91 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bdbe6a86dd238c5548ce812335ad3279736263c0;p=glibc.git git-msync Committed for 2.35 commit 60dfb30976761c9b20a22f18356e0c3e581f5394 Author: Samuel Thibault Date: Tue Aug 31 19:41:02 2021 +0200 hurd msync: Drop bogus test MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC are set. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-msync.diff --- diff --git a/sysdeps/mach/hurd/msync.c b/sysdeps/mach/hurd/msync.c index 4311dd56d..115d30ec4 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;