From 0f548e3b10e30a20a53ec26df106fc7a9c918ed5 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 5 Jun 2006 12:16:20 +1000 Subject: fix exportfs with multiple matches Fixes a problem with exportfs -o and multiple entries of the same type for the same patch that matches a given client. The entire rationale and problem description can be found at http://bugs.debian.org/245449 (fumihiko kakuma ) --- support/export/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support') diff --git a/support/export/export.c b/support/export/export.c index 27d4440..cfb6681 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -131,7 +131,7 @@ export_add(nfs_export *exp) xlog(L_FATAL, "unknown client type in export_add"); epp = exportlist + type; - while (*epp && slen < strlen((*epp)->m_export.e_path)) + while (*epp && slen <= strlen((*epp)->m_export.e_path)) epp = &((*epp)->m_next); exp->m_next = *epp; *epp = exp; -- cgit