rpms/nfs-utils/devel nfs-utils-1.0.7-mountd-stat64.patch, NONE, 1.1 nfs-utils.spec, 1.60, 1.61

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Aug 16 12:14:35 UTC 2005


Author: steved

Update of /cvs/dist/rpms/nfs-utils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv7314

Modified Files:
	nfs-utils.spec 
Added Files:
	nfs-utils-1.0.7-mountd-stat64.patch 
Log Message:
Changed mountd to use stat64() (bz 165062)


nfs-utils-1.0.7-mountd-stat64.patch:
 mountd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

--- NEW FILE nfs-utils-1.0.7-mountd-stat64.patch ---
--- 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;


Index: nfs-utils.spec
===================================================================
RCS file: /cvs/dist/rpms/nfs-utils/devel/nfs-utils.spec,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- nfs-utils.spec	2 Aug 2005 18:24:08 -0000	1.60
+++ nfs-utils.spec	16 Aug 2005 12:14:32 -0000	1.61
@@ -1,7 +1,7 @@
 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
 Name: nfs-utils
 Version: 1.0.7
-Release: 12
+Release: 13
 
 # group all 32bit related archs
 %define all_32bit_archs i386 i686 athlon
@@ -44,6 +44,7 @@
 Patch63: nfs-utils-1.0.7-idmap-reopen.patch
 Patch64: nfs-utils-1.0.7-gssd-64bit.patch
 Patch65: nfs-utils-1.0.7-rquotad-curblocks.patch
+Patch66: nfs-utils-1.0.7-mountd-stat64.patch
 
 Patch100: nfs-utils-1.0.7-compile.patch
 Patch150: nfs-utils-1.0.6-pie.patch
@@ -103,6 +104,7 @@
 %patch63 -p1 -b .rename
 %patch64 -p1 -b .64bit
 %patch65 -p1 -b .curblocks
+%patch66 -p1 -b .stat64
 
 
 # Do the magic to get things to compile
@@ -253,6 +255,9 @@
 %config /etc/rc.d/init.d/nfslock
 
 %changelog
+* Tue Aug 16 2005 Steve Dickson <SteveD at RedHat.com> 1.0.7-13
+- Changed mountd to use stat64() (bz 165062)
+
 * Tue Aug  2 2005 Steve Dickson <SteveD at RedHat.com> 1.0.7-12
 - Changed useradd to use new -l flag (bz149407)
 - 64bit fix in gssd code (bz 163139)




More information about the fedora-cvs-commits mailing list