Fix regression in rpc.rquotad with certain NFS servers.

Approved by:	so
Security:	FreeBSD-EN-20:07.quotad
This commit is contained in:
gordon 2020-04-21 15:50:57 +00:00 committed by Franco Fichtner
parent e5268282c8
commit e4648cc322
1 changed files with 1 additions and 1 deletions

View File

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