mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
FreeBSD: update vaccess signature on most recent HEAD
Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10682
This commit is contained in:
parent
12045d0278
commit
0f95ddcc0c
@ -5284,8 +5284,13 @@ zfs_freebsd_access(struct vop_access_args *ap)
|
||||
if (error == 0) {
|
||||
accmode = ap->a_accmode & ~(VREAD|VWRITE|VEXEC|VAPPEND);
|
||||
if (accmode != 0) {
|
||||
#if __FreeBSD_version >= 1300105
|
||||
error = vaccess(vp->v_type, zp->z_mode, zp->z_uid,
|
||||
zp->z_gid, accmode, ap->a_cred);
|
||||
#else
|
||||
error = vaccess(vp->v_type, zp->z_mode, zp->z_uid,
|
||||
zp->z_gid, accmode, ap->a_cred, NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user