diff options
-rw-r--r-- | sys/fs/ntfs/ntfs_vfsops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/ntfs/ntfs_vfsops.c b/sys/fs/ntfs/ntfs_vfsops.c index 239a2c8..1e7212b 100644 --- a/sys/fs/ntfs/ntfs_vfsops.c +++ b/sys/fs/ntfs/ntfs_vfsops.c @@ -508,6 +508,7 @@ ntfs_unmount( vinvalbuf(ntmp->ntm_devvp, V_SAVE, NOCRED, td, 0, 0); + ronly = (mp->mnt_flag & MNT_RDONLY) != 0; error = VOP_CLOSE(ntmp->ntm_devvp, ronly ? FREAD : FREAD|FWRITE, NOCRED, td); |