diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-24 16:34:55 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-04-24 16:34:55 +0200 |
commit | 124921a0266412427613a404287205ec435f3364 (patch) | |
tree | b8c6dfccdfaa71a8d45614cf0c9c0d7a78de0cc6 /libnetfs | |
parent | b91ac2b9c65142beef19d44bbcdacd16e12c0920 (diff) |
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.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/dir-mkfile.c | 2 |
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) { |