diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-25 02:47:19 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-25 02:47:19 +0000 |
commit | 637b061e342716fc8853b32d396309fc563cd082 (patch) | |
tree | 510ab3b4369bb67b0e75d4b9552239accfc0848b /storeio | |
parent | fca42583fe9467121d491920b14144b7610c9d7b (diff) |
1999-11-24 Roland McGrath <roland@baalperazim.frob.com>
* storeio.c (trivfs_modify_stat): Clear writable bits if open store is
readonly, not just if we got the --readonly switch.
Diffstat (limited to 'storeio')
-rw-r--r-- | storeio/storeio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |