mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Pass flags to VOP_CLOSE() corresponding to what was passed to VOP_OPEN().
Submitted by: "Peter Edwards" <pmedwards@eircom.net>
This commit is contained in:
parent
795b630655
commit
2afdbfe1e6
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue