diff options
-rw-r--r-- | libdiskfs/fsys-getroot.c | 2 |
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); |