summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:36:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:36:44 +0000
commitd716d47a7a38cad7da22719e687a9c7b00867486 (patch)
tree7e24c1cbb70611686fb615ae06e6d110305de39a
parent22ed499dc8313fa5470a2b401d9f60d64c419a19 (diff)
(iohelp_fetch_shared_data): Use diskfs_check_readonly instead of
diskfs_readonly.
-rw-r--r--libdiskfs/conch-fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/conch-fetch.c b/libdiskfs/conch-fetch.c
index 178c8d11..9d31265c 100644
--- a/libdiskfs/conch-fetch.c
+++ b/libdiskfs/conch-fetch.c
@@ -39,7 +39,7 @@ iohelp_fetch_shared_data (void *arg)
{
/* The user can validly set the size, but block the attempt
if we are readonly. */
- if (diskfs_readonly)
+ if (diskfs_check_readonly ())
cred->mapped->file_size = cred->po->np->dn_stat.st_size;
else
{
@@ -51,7 +51,7 @@ iohelp_fetch_shared_data (void *arg)
cred->po->filepointer = cred->mapped->xx_file_pointer;
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
{
if (cred->mapped->written)
{