usr/src/uts/common/fs/nfs/nfs_server.c
changeset 13779 bf40125f4b37
parent 13452 6bec9720e054
child 13814 829c00a55a37
equal deleted inserted replaced
13778:e6b6968147fd 13779:bf40125f4b37
  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