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:
Matthew Macy 2020-08-07 14:16:01 -07:00 committed by GitHub
parent 12045d0278
commit 0f95ddcc0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}