From 698fb8e4834c8b3417c61833b27177a34c0cec66 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 19 Oct 1995 19:59:59 +0000 Subject: (_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. --- libdiskfs/trans-callback.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libdiskfs/trans-callback.c') 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); -- cgit v1.2.3