diff options
Diffstat (limited to 'libdiskfs/conch-fetch.c')
-rw-r--r-- | libdiskfs/conch-fetch.c | 4 |
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) { |