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