summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libnetfs/dir-mkfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/dir-mkfile.c b/libnetfs/dir-mkfile.c
index fcbc9da8..6cd79174 100644
--- a/libnetfs/dir-mkfile.c
+++ b/libnetfs/dir-mkfile.c
@@ -37,7 +37,7 @@ netfs_S_dir_mkfile (struct protid *diruser, int flags, mode_t mode,
if (!err)
{
/* the dir is now unlocked and NP is locked */
- flags &= OPENONLY_STATE_MODES;
+ flags &= ~OPENONLY_STATE_MODES;
err = iohelp_dup_iouser (&user, diruser->user);
if (! err)
{