1f4328
diff -up nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig nfs-utils-1.3.0/utils/exportfs/exportfs.c
1f4328
--- nfs-utils-1.3.0/utils/exportfs/exportfs.c.orig	2021-06-09 15:00:18.819488256 -0400
1f4328
+++ nfs-utils-1.3.0/utils/exportfs/exportfs.c	2021-06-09 15:06:28.804755411 -0400
1f4328
@@ -417,7 +417,7 @@ unexportfs_parsed(char *hname, char *pat
1f4328
 	 * so need to deal with it.
1f4328
 	*/
1f4328
 	size_t nlen = strlen(path);
1f4328
-	while (path[nlen - 1] == '/')
1f4328
+	while ((nlen > 1) && (path[nlen - 1] == '/'))
1f4328
 		nlen--;
1f4328
 
1f4328
 	for (exp = exportlist[htype].p_head; exp; exp = exp->m_next) {