diff --git a/nfs-utils-1.1.2-rmtab-fqdn.patch b/nfs-utils-1.1.2-rmtab-fqdn.patch new file mode 100644 index 0000000..0122312 --- /dev/null +++ b/nfs-utils-1.1.2-rmtab-fqdn.patch @@ -0,0 +1,12 @@ +diff -up nfs-utils-1.1.2/support/export/rmtab.c.orig nfs-utils-1.1.2/support/export/rmtab.c +--- nfs-utils-1.1.2/support/export/rmtab.c.orig 2008-03-14 11:46:29.000000000 -0400 ++++ nfs-utils-1.1.2/support/export/rmtab.c 2008-06-24 20:15:06.000000000 -0400 +@@ -31,7 +31,7 @@ rmtab_read(void) + int htype; + + htype = client_gettype(rep->r_client); +- if (htype == MCL_FQDN || htype == MCL_SUBNETWORK ++ if ((htype == MCL_FQDN || htype == MCL_SUBNETWORK) + && (hp = gethostbyname (rep->r_client)) + && (hp = hostent_dup (hp), + exp = export_allowed (hp, rep->r_path))) { diff --git a/nfs-utils.spec b/nfs-utils.spec index 927fe4e..83d2a04 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://sourceforge.net/projects/nfs Version: 1.1.2 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 1 # group all 32bit related archs @@ -31,6 +31,7 @@ Patch05: nfs-utils-1.1.0-exportfs-open.patch Patch06: nfs-utils-1.1.0-exportfs-man-update.patch Patch07: nfs-utils-1.1.2-multi-auth-flavours.patch Patch08: nfs-utils-1.1.2-mount-eacces.patch +Patch09: nfs-utils-1.1.2-rmtab-fqdn.patch %if %{enablefscache} Patch90: nfs-utils-1.1.0-mount-fsc.patch @@ -90,6 +91,7 @@ This package also contains the mount.nfs and umount.nfs program. %patch06 -p1 %patch07 -p1 %patch08 -p1 +%patch09 -p1 %if %{enablefscache} %patch90 -p1 @@ -257,6 +259,9 @@ fi %attr(4755,root,root) /sbin/umount.nfs4 %changelog +* Tue Jun 24 2008 Steve Dickson 1.1.2-5 +- FQDNs in the rmtab causes exportfs to seg fault (bz 444275) + * Wed May 7 2008 Steve Dickson 1.1.2-4 - Added ppc arch to the all_32bit_archs list (bz 442847)