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 | 7eb2e7af3cfe59e9e22f347ecb686ad84356e45d (patch) | |
tree | 20911fdc747a2dee12dfe3911b2df303e85ac3d8 /ufs | |
parent | 63c3d556fb1d9f4d51f0c135341f873557ab848b (diff) |
(diskfs_truncate): Call diskfs_check_readonly.
(diskfs_grow): Likewise.
Diffstat (limited to 'ufs')
-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. */ |