summaryrefslogtreecommitdiff
path: root/libdiskfs/dir-rename.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/dir-rename.c')
-rw-r--r--libdiskfs/dir-rename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-rename.c b/libdiskfs/dir-rename.c
index 22f2fee6..7e993def 100644
--- a/libdiskfs/dir-rename.c
+++ b/libdiskfs/dir-rename.c
@@ -42,7 +42,7 @@ diskfs_S_dir_rename (struct protid *fromcred,
if (!tocred)
return EXDEV;
- if (diskfs_readonly)
+ if (diskfs_check_readonly ())
return EROFS;
fdp = fromcred->po->np;