Fix regression in rpc.rquotad with certain NFS servers.
Approved by: so Security: FreeBSD-EN-20:07.quotad
This commit is contained in:
parent
e5268282c8
commit
e4648cc322
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue