diff options
Diffstat (limited to 'ports/linux/guts/openat.c')
-rw-r--r-- | ports/linux/guts/openat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/linux/guts/openat.c b/ports/linux/guts/openat.c index b571c56..924e354 100644 --- a/ports/linux/guts/openat.c +++ b/ports/linux/guts/openat.c @@ -42,7 +42,7 @@ /* don't handle O_CREAT the same way if O_TMPFILE exists * and is set. */ - if (flags & O_TMPFILE) { + if ((flags & O_TMPFILE) == O_TMPFILE) { existed = 0; } else #endif @@ -80,7 +80,7 @@ * database, because there's no directory entries for * the file yet. */ - if (flags & O_TMPFILE) { + if ((flags & O_TMPFILE) == O_TMPFILE) { real_fchmod(rc, PSEUDO_FS_MODE(mode, 0)); errno = save_errno; return rc; |