diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |