diff options
-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); } |