aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 1b26b1620664..d930f1856ed2 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1620,7 +1620,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
1620 open_flag |= O_DSYNC; 1620 open_flag |= O_DSYNC;
1621 1621
1622 if (!acc_mode) 1622 if (!acc_mode)
1623 acc_mode = MAY_OPEN | ACC_MODE(flag); 1623 acc_mode = MAY_OPEN | ACC_MODE(open_flag);
1624 1624
1625 /* O_TRUNC implies we need access checks for write permissions */ 1625 /* O_TRUNC implies we need access checks for write permissions */
1626 if (flag & O_TRUNC) 1626 if (flag & O_TRUNC)