summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:38:14 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:38:14 +0000
commit3d467ea643dd2aefa33d65be42b154f2960db7a5 (patch)
treeb1b3f16e33db65f1ee26d0203a8a78214a93501d /libdiskfs
parent4013274fbdeb9c4e30faef709c9f5d2c28f9f356 (diff)
(diskfs_S_dir_lookup): Use diskfs_check_readonly instead of diskfs_readonly.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 59e850cd..c8138254 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -383,7 +383,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
{
if (type == S_IFDIR)
error = EISDIR;
- else if (diskfs_readonly)
+ else if (diskfs_check_readonly ())
error = EROFS;
else
error = diskfs_access (np, S_IWRITE, dircred);