Linux NFS development
 help / color / mirror / Atom feed
* Small nfs-utils patch
@ 2005-05-23 10:15 Olaf Kirch
  2005-10-07  4:47 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Kirch @ 2005-05-23 10:15 UTC (permalink / raw)
  To: nfs

[-- Attachment #1: Type: text/plain, Size: 389 bytes --]

Without this patch, showmount -e would sometimes display
host names that should really have been subsumed under a
wildcard entry.

The problem was that the code in get_exportlist would always
skip the next group entry after removing one FQDN.

Olaf
-- 
Olaf Kirch   |  --- o --- Nous sommes du soleil we love when we play
okir@suse.de |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax

[-- Attachment #2: nfs-utils-1.0.6-showmount.patch --]
[-- Type: text/plain, Size: 756 bytes --]


Without this patch, showmount -e would sometimes display
host names that should really have been subsumed under a
wildcard entry.

The problem was that the code in get_exportlist would always
skip the next group entry after removing one FQDN.

Signed-off-by: Olaf Kirch <okir@suse.de>

Index: nfs-utils-1.0.7/utils/mountd/mountd.c
===================================================================
--- nfs-utils-1.0.7.orig/utils/mountd/mountd.c
+++ nfs-utils-1.0.7/utils/mountd/mountd.c
@@ -409,11 +409,9 @@ get_exportlist(void)
 				xfree(c->gr_name);
 				xfree(c);
 				xfree (hp);
-				if ((c = *cp) == NULL)
-				  break;
+				continue;
 			      }
-			      else
-				xfree (hp);
+			      xfree (hp);
 			    }
 			    cp = &(c->gr_next);
 			  }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-07  4:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 10:15 Small nfs-utils patch Olaf Kirch
2005-10-07  4:47 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox