Date: Sat, 18 Dec 2021 03:03:54 GMT From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 80a595a2936d - stable/12 - nfscommon: Fix arguments for priv_check_cred() Message-ID: <202112180303.1BI33sUO016884@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=80a595a2936dd4bfe5e8e3f51896b135dd2568b3 commit 80a595a2936dd4bfe5e8e3f51896b135dd2568b3 Author: Rick Macklem <rmacklem@FreeBSD.org> AuthorDate: 2021-12-18 03:00:50 +0000 Commit: Rick Macklem <rmacklem@FreeBSD.org> CommitDate: 2021-12-18 03:00:50 +0000 nfscommon: Fix arguments for priv_check_cred() Cherry-pick commit b386392ea909 resulted in a missing argument for priv_check_cred(). This patch fixes this. This is a direct commit. --- sys/fs/nfs/nfs_commonsubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index 1b3caba07b07..c7271cffe1ab 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -1980,7 +1980,7 @@ nfsv4_loadattr(struct nfsrv_descript *nd, vnode_t vp, NFSM_DISSECT(tl, u_int32_t *, NFSX_HYPER); if (compare) { if (priv_check_cred(cred, - PRIV_VFS_BLOCKRESERVE)) + PRIV_VFS_BLOCKRESERVE, 0)) uquad = sbp->f_bfree; else uquad = (uint64_t)sbp->f_bavail;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112180303.1BI33sUO016884>