Blob Blame History Raw
diff -up nfs-utils-1.2.7/utils/mountd/cache.c.orig nfs-utils-1.2.7/utils/mountd/cache.c
--- nfs-utils-1.2.7/utils/mountd/cache.c.orig	2013-03-25 11:03:56.003106420 -0400
+++ nfs-utils-1.2.7/utils/mountd/cache.c	2013-03-25 11:05:51.435050997 -0400
@@ -374,7 +374,8 @@ static bool subexport(struct exportent *
 	size_t l2 = strlen(p2);
 
 	return e2->e_flags & NFSEXP_CROSSMOUNT
-		&& is_subdirectory(p1, p2);
+		&& strncmp(p1, p2, l2) == 0
+		&& p1[l2] == '/';
 }
 
 struct parsed_fsid {