Skip to content

Commit 35f87dd

Browse files
committed
vfs: Fix unsupported flag detection in vfs_openat().
1 parent ff94dbf commit 35f87dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syscall/vfs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ int vfs_openat(int dirfd, const char *pathname, int flags, int mode, struct file
696696
if ((flags & O_DIRECT)
697697
|| (flags & O_DSYNC)
698698
|| (flags & O_LARGEFILE) || (flags & O_NOATIME) || (flags & O_NOCTTY)
699-
|| (flags & O_NONBLOCK) || (flags & O_SYNC) || (flags & O_TMPFILE))
699+
|| (flags & O_NONBLOCK) || (flags & __O_SYNC) || (flags & __O_TMPFILE))
700700
{
701701
log_error("Unsupported flag combination found.\n");
702702
//return -EINVAL;

0 commit comments

Comments
 (0)