diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 21:24:12 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 21:24:12 +0000 |
commit | 41e7ae8cc4056eb04dd7cd65002b079d3d7d2cb1 (patch) | |
tree | a8adaee97af82694bf4196448a5c55e4dc94554b /ufs/sizes.c | |
parent | b3a2a116f9e9199f2138d5add98780d8cf0fb24d (diff) |
(diskfs_truncate): Call diskfs_check_readonly.
(diskfs_grow): Likewise.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r-- | ufs/sizes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index f98ceb94..39717384 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -49,6 +49,7 @@ diskfs_truncate (struct node *np, if (length >= np->dn_stat.st_size) return 0; + diskfs_check_readonly (); assert (!diskfs_readonly); /* First check to see if this is a kludged symlink; if so @@ -469,6 +470,7 @@ diskfs_grow (struct node *np, if (end <= np->allocsize) return 0; + diskfs_check_readonly (); assert (!diskfs_readonly); /* This reference will ensure that NP->dn->fileinfo stays allocated. */ |