aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2020-04-21 15:50:57 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2020-04-21 15:50:57 +0000
commit5a7495693ce1019ec56d63a971aaf9a3974fbb09 (patch)
tree3bdd0203dd3b8c2303b980b3ff37fe90b8683eb5
parent514c1ff99176b8cf7f8c167769da99cf18371661 (diff)
downloadsrc-5a7495693ce1019ec56d63a971aaf9a3974fbb09.tar.gz
src-5a7495693ce1019ec56d63a971aaf9a3974fbb09.zip
Fix regression in rpc.rquotad with certain NFS servers.
Approved by: so Security: FreeBSD-EN-20:07.quotad
Notes
Notes: svn path=/releng/12.1/; revision=360148
-rw-r--r--usr.bin/quota/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index f4481fecece6..71e63208884f 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -606,7 +606,7 @@ getnfsquota(struct statfs *fst, struct quotause *qup, long id, int quotatype)
call_stat = callaurpc(host, RQUOTAPROG, EXT_RQUOTAVERS,
RQUOTAPROC_GETQUOTA, (xdrproc_t)xdr_ext_getquota_args, (char *)&gq_args,
(xdrproc_t)xdr_getquota_rslt, (char *)&gq_rslt);
- if (call_stat == RPC_PROGVERSMISMATCH) {
+ if (call_stat == RPC_PROGVERSMISMATCH || call_stat == RPC_PROGNOTREGISTERED) {
if (quotatype == USRQUOTA) {
old_gq_args.gqa_pathp = cp + 1;
old_gq_args.gqa_uid = id;