summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-19 19:59:59 +0000
committerMiles Bader <miles@gnu.org>1995-10-19 19:59:59 +0000
commit698fb8e4834c8b3417c61833b27177a34c0cec66 (patch)
tree33e6e1647f5f85ba6e343735a216f05bd3f06b39
parent2ccd412dc72b036719a2f48302549a6370c6d3c4 (diff)
(_diskfs_translator_callback_fn):
Open the new translator's realnode read-only for now, since we know it doesn't matter and gratuitously writable nodes prevent us from starting up or going read-only. The fsys_startup interface should change very soon and make this irrelevant anyway.
-rw-r--r--libdiskfs/trans-callback.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdiskfs/trans-callback.c b/libdiskfs/trans-callback.c
index 4d48078a..cd1025f5 100644
--- a/libdiskfs/trans-callback.c
+++ b/libdiskfs/trans-callback.c
@@ -46,8 +46,13 @@ _diskfs_translator_callback_fn (void *cookie1, void *cookie2,
newpi = diskfs_make_protid (diskfs_make_peropen (np,
(O_READ|O_EXEC
+/* For now, don't give translators write access to their underlying node.
+ The fsys_startup interface will soon make this irrelevant anyway. */
+#ifdef XXX
| (!diskfs_readonly
- ? O_WRITE : 0)),
+ ? O_WRITE : 0)
+#endif
+ ),
*dotdot),
uid, 1, gid, 1);