diff options
-rw-r--r-- | libdiskfs/dir-mkfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-mkfile.c b/libdiskfs/dir-mkfile.c index 0385c56a..591c04b3 100644 --- a/libdiskfs/dir-mkfile.c +++ b/libdiskfs/dir-mkfile.c @@ -67,7 +67,7 @@ diskfs_S_dir_mkfile (struct protid *cred, if (err) return err; - flags &= (O_READ | O_WRITE | O_EXEC); + flags &= ~OPENONLY_STATE_MODES; /* These bits are all meaningless here. */ err = diskfs_create_protid (diskfs_make_peropen (np, flags, cred->po), cred->user, &newpi); if (! err) |