From 637b061e342716fc8853b32d396309fc563cd082 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 25 Nov 1999 02:47:19 +0000 Subject: 1999-11-24 Roland McGrath * storeio.c (trivfs_modify_stat): Clear writable bits if open store is readonly, not just if we got the --readonly switch. --- storeio/storeio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storeio') diff --git a/storeio/storeio.c b/storeio/storeio.c index 29b8dd6a..8816f4cd 100644 --- a/storeio/storeio.c +++ b/storeio/storeio.c @@ -268,7 +268,7 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) } st->st_rdev = rdev; - if (readonly) + if (readonly || (open && (open->dev->store->flags & STORE_READONLY))) st->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); } -- cgit v1.2.3