equal
deleted
inserted
replaced
1450 auth_tooweak(struct svc_req *req, char *res) |
1450 auth_tooweak(struct svc_req *req, char *res) |
1451 { |
1451 { |
1452 |
1452 |
1453 if (req->rq_vers == NFS_VERSION && req->rq_proc == RFS_LOOKUP) { |
1453 if (req->rq_vers == NFS_VERSION && req->rq_proc == RFS_LOOKUP) { |
1454 struct nfsdiropres *dr = (struct nfsdiropres *)res; |
1454 struct nfsdiropres *dr = (struct nfsdiropres *)res; |
1455 if (dr->dr_status == WNFSERR_CLNT_FLAVOR) |
1455 if ((enum wnfsstat)dr->dr_status == WNFSERR_CLNT_FLAVOR) |
1456 return (TRUE); |
1456 return (TRUE); |
1457 } else if (req->rq_vers == NFS_V3 && req->rq_proc == NFSPROC3_LOOKUP) { |
1457 } else if (req->rq_vers == NFS_V3 && req->rq_proc == NFSPROC3_LOOKUP) { |
1458 LOOKUP3res *resp = (LOOKUP3res *)res; |
1458 LOOKUP3res *resp = (LOOKUP3res *)res; |
1459 if (resp->status == WNFSERR_CLNT_FLAVOR) |
1459 if ((enum wnfsstat)resp->status == WNFSERR_CLNT_FLAVOR) |
1460 return (TRUE); |
1460 return (TRUE); |
1461 } |
1461 } |
1462 return (FALSE); |
1462 return (FALSE); |
1463 } |
1463 } |
1464 |
1464 |