summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:44:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:44:12 +0000
commitf3bb79714f3767aa92a75467d34ac0dfee73a21b (patch)
treea0888a4a7de8c711426fb684df85bb1fa6329f2f
parentd194f05e7c27f0a7b0daacc04d39f01fd926389a (diff)
(diskfs_S_fsys_getroot): Use diskfs_check_readonly instead of diskfs_readonly.
-rw-r--r--libdiskfs/fsys-getroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index 13881547..9db349c9 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -143,7 +143,7 @@ diskfs_S_fsys_getroot (fsys_t controlport,
{
if (type == S_IFDIR)
error = EISDIR;
- else if (diskfs_readonly)
+ else if (diskfs_check_readonly ())
error = EROFS;
else
error = diskfs_access (diskfs_root_node, S_IWRITE, &pseudocred);