From 124921a0266412427613a404287205ec435f3364 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 24 Apr 2016 16:34:55 +0200 Subject: Fix access mode of temporary files * libnetfs/dir-mkfile.c (netfs_S_dir_mkfile): Keep flags out of OPENONLY_STATE_MODES, instead of flags of OPENONLY_STATE_MODES, for the peropen's openstat. --- libnetfs/dir-mkfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3