public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd msync: Drop bogus test
@ 2021-08-31 17:41 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-08-31 17:41 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=60dfb30976761c9b20a22f18356e0c3e581f5394

commit 60dfb30976761c9b20a22f18356e0c3e581f5394
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
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.

Diff:
---
 sysdeps/mach/hurd/msync.c | 3 ---
 1 file changed, 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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-31 17:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 17:41 [glibc] hurd msync: Drop bogus test Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).