summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-06-05 12:16:20 +1000
committerNeil Brown <neilb@suse.de>2006-06-05 12:16:20 +1000
commit0f548e3b10e30a20a53ec26df106fc7a9c918ed5 (patch)
tree250b6dd8d62a16e2392255ff8ff9d6e8a4f67ad7
parente860d0ecddac47b5f68bc1b41b19c2700fd64495 (diff)
downloadnfs-utils-0f548e3b10e30a20a53ec26df106fc7a9c918ed5.tar.gz
nfs-utils-0f548e3b10e30a20a53ec26df106fc7a9c918ed5.tar.xz
nfs-utils-0f548e3b10e30a20a53ec26df106fc7a9c918ed5.zip
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 <kakmy@mvh.biglobe.ne.jp>)
-rw-r--r--ChangeLog5
-rw-r--r--support/export/export.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 29a0c45..b6df998 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2006-06-05 NeilBrown <neilb@suse.de>
Remove debian/ at request of Debian maintainer "Steinar H. Gunderson" <sesse@debian.org>
+ - fix_exportfs_with_multiple_matches.diff: 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 <kakmy@mvh.biglobe.ne.jp>)
+
2006-04-12 NeilBrown <neilb@suse.de>
Remove **/Makefile.in, aclocal.m4, configure, and
support/include/config.h.in from source control
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;