--- nfs-utils-1.0.7/utils/mountd/mountd.c.orig 2005-08-02 10:25:34.000000000 -0400 +++ nfs-utils-1.0.7/utils/mountd/mountd.c 2005-08-16 04:01:27.000000000 -0400 @@ -187,7 +187,7 @@ mount_pathconf_2_svc(struct svc_req *rqs { struct sockaddr_in *sin = (struct sockaddr_in *) svc_getcaller(rqstp->rq_xprt); - struct stat stb; + struct stat64 stb; nfs_export *exp; char rpath[MAXPATHLEN+1]; char *p = *path; @@ -209,7 +209,7 @@ mount_pathconf_2_svc(struct svc_req *rqs /* Now authenticate the intruder... */ if (!(exp = auth_authenticate("pathconf", sin, p))) { return 1; - } else if (stat(p, &stb) < 0) { + } else if (stat64(p, &stb) < 0) { xlog(L_WARNING, "can't stat exported dir %s: %s", p, strerror(errno)); export_reset (exp); @@ -263,7 +263,7 @@ get_rootfh(struct svc_req *rqstp, dirpat { struct sockaddr_in *sin = (struct sockaddr_in *) svc_getcaller(rqstp->rq_xprt); - struct stat stb, estb; + struct stat64 stb, estb; nfs_export *exp; char rpath[MAXPATHLEN+1]; char *p = *path; @@ -283,7 +283,7 @@ get_rootfh(struct svc_req *rqstp, dirpat /* Now authenticate the intruder... */ if (!(exp = auth_authenticate("mount", sin, p))) { *error = NFSERR_ACCES; - } else if (stat(p, &stb) < 0) { + } else if (stat64(p, &stb) < 0) { xlog(L_WARNING, "can't stat exported dir %s: %s", p, strerror(errno)); if (errno == ENOENT) @@ -293,7 +293,7 @@ get_rootfh(struct svc_req *rqstp, dirpat } else if (!S_ISDIR(stb.st_mode) && !S_ISREG(stb.st_mode)) { xlog(L_WARNING, "%s is not a directory or regular file", p); *error = NFSERR_NOTDIR; - } else if (stat(exp->m_export.e_path, &estb) < 0) { + } else if (stat64(exp->m_export.e_path, &estb) < 0) { xlog(L_WARNING, "can't stat export point %s: %s", p, strerror(errno)); *error = NFSERR_NOENT;