diff options
author | Roland McGrath <roland@gnu.org> | 2002-03-06 09:51:28 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-03-06 09:51:28 +0000 |
commit | bde8bc9587c90c81423e338419245dca578c2b72 (patch) | |
tree | e3a836eea5d762045af5fbe9c66b5a23ea74f2f9 /libdiskfs | |
parent | 16815efbd8e810c01b6b25aa134429acad85436e (diff) |
2002-03-06 Roland McGrath <roland@frob.com>
* dir-mkfile.c (diskfs_S_dir_mkfile): Clear OPENONLY_STATE_MODES bits
from FLAGS, not all bits outside O_RDWR|O_EXEC.
Diffstat (limited to 'libdiskfs')
-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) |