aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeebs <seebs@seebs.net>2018-01-20 10:04:14 -0600
committerSeebs <seebs@seebs.net>2018-01-20 10:04:14 -0600
commit23f089f480e04ca1b88df8fe1f46b864fee2a0b8 (patch)
tree59178fbb2cd7335007aeed896ed7a32a50a8b845
parent449c234d3030328fb997b309511bb54598848a05 (diff)
downloadpseudo-23f089f480e04ca1b88df8fe1f46b864fee2a0b8.tar.gz
pseudo-23f089f480e04ca1b88df8fe1f46b864fee2a0b8.tar.bz2
pseudo-23f089f480e04ca1b88df8fe1f46b864fee2a0b8.zip
Fix openat flag #ifdef typopseudo-1.9.0PSEUDO_1_9_0
Whoops, missed this one. Reported/submitted by <joshua.g.lock@linux.intel.com>. Signed-off-by: Seebs <seebs@seebs.net>
-rw-r--r--ChangeLog.txt4
-rw-r--r--ports/darwin/guts/open.c2
-rw-r--r--ports/linux/guts/openat.c2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index d334dec..84c5d5a 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,7 @@
+2018-01-20:
+ * (seebs) merge patch from <joshua.g.lock@linux.intel.com> to fix
+ open/openat flags.
+
2018-01-16:
* (seebs) rework the LINKAT case significantly but now
it's actually probably right.
diff --git a/ports/darwin/guts/open.c b/ports/darwin/guts/open.c
index f34b0d3..307bcc9 100644
--- a/ports/darwin/guts/open.c
+++ b/ports/darwin/guts/open.c
@@ -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
diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c
index a3637c8..b571c56 100644
--- a/ports/linux/guts/openat.c
+++ b/ports/linux/guts/openat.c
@@ -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.
*/