diff --git a/[refs] b/[refs] index d318742f9a3d..753b6a021e67 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ddeff520f02b92128132c282c350fa72afffb84a +refs/heads/master: a634904a7de0d3a0bc606f608007a34e8c05bfee diff --git a/trunk/fs/namei.c b/trunk/fs/namei.c index 55a131230f94..863166441bf3 100644 --- a/trunk/fs/namei.c +++ b/trunk/fs/namei.c @@ -1767,6 +1767,8 @@ struct dentry *lookup_create(struct nameidata *nd, int is_dir) if (nd->last_type != LAST_NORM) goto fail; nd->flags &= ~LOOKUP_PARENT; + nd->flags |= LOOKUP_CREATE; + nd->intent.open.flags = O_EXCL; /* * Do the final lookup.