aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index 30760017deed..03028d0e7487 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -814,7 +814,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o
814 op->mode = 0; 814 op->mode = 0;
815 815
816 /* Must never be set by userspace */ 816 /* Must never be set by userspace */
817 flags &= ~FMODE_NONOTIFY; 817 flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC;
818 818
819 /* 819 /*
820 * O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only 820 * O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only