aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namei.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 55a131230f94..863166441bf3 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1767,6 +1767,8 @@ struct dentry *lookup_create(struct nameidata *nd, int is_dir)
1767 if (nd->last_type != LAST_NORM) 1767 if (nd->last_type != LAST_NORM)
1768 goto fail; 1768 goto fail;
1769 nd->flags &= ~LOOKUP_PARENT; 1769 nd->flags &= ~LOOKUP_PARENT;
1770 nd->flags |= LOOKUP_CREATE;
1771 nd->intent.open.flags = O_EXCL;
1770 1772
1771 /* 1773 /*
1772 * Do the final lookup. 1774 * Do the final lookup.