Skip to contentSkip to conversation

openat.c: fix flags in wrap_openat

pseudo Juro Bystricky 1 participant 1 message May 23, 2017

lore
Share & tools
lore
#0 lore raw

Due to a silly typo we use incorrect open flags.

---
 ports/darwin/guts/open.c  | 2 +-
 ports/linux/guts/openat.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
ports/darwin/guts/open.c +1 -1
index f34b0d3..307bcc9 100644
@@ -12,7 +12,7 @@
 
 	/* mask out mode bits appropriately */
 	mode = mode & ~pseudo_umask;
-#ifdef PSEUDO_FORCE_ASYNCH
+#ifdef PSEUDO_FORCE_ASYNC
         flags &= ~O_SYNC;
 #endif
 
ports/linux/guts/openat.c +1 -1
index eb7c0b5..5b26e08 100644
@@ -20,7 +20,7 @@
 	}
 #endif
 
-#ifdef PSEUDO_FORCE_ASYNCH
+#ifdef PSEUDO_FORCE_ASYNC
         /* Yes, I'm aware that every Linux system I've seen has
          * DSYNC and RSYNC being the same value as SYNC.
          */
Signature · 1 line
2.7.4