mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-01 13:17:19 +08:00
hurd msync: Drop bogus test
MS_SYNC is actually 0, so we cannot test that both MS_SYNC and MS_ASYNC are set.
This commit is contained in:
parent
e2930d8777
commit
60dfb30976
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user