summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-21 21:39:46 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-21 21:39:46 +0000
commitc932385dfcb5ff1d4628e5b6fdb30c49988647ed (patch)
tree439140f10348d494b9f8fa094e8568c756d53812
parent0d2d9672157cff4d2882a97d26adab0dcd539025 (diff)
(_diskfs_translator_callback_fn): Use correct sense of diskfs_readonly
flag.
-rw-r--r--libdiskfs/trans-callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c
index 0c2e438c..4d48078a 100644
--- a/libdiskfs/trans-callback.c
+++ b/libdiskfs/trans-callback.c
@@ -46,7 +46,7 @@ _diskfs_translator_callback_fn (void *cookie1, void *cookie2,
newpi = diskfs_make_protid (diskfs_make_peropen (np,
(O_READ|O_EXEC
- | (diskfs_readonly
+ | (!diskfs_readonly
? O_WRITE : 0)),
*dotdot),
uid, 1, gid, 1);