X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fexport.c;h=cfb6681093fe8e629eb38ff1289794115191b10b;hp=eedbb751b5a505f860572fb77e914e3e29bb1316;hb=0f548e3b10e30a20a53ec26df106fc7a9c918ed5;hpb=f68785e72129ab643d6c793bd5a11bdf0010eff9 diff --git a/support/export/export.c b/support/export/export.c index eedbb75..cfb6681 100644 --- a/support/export/export.c +++ b/support/export/export.c @@ -6,7 +6,9 @@ * Copyright (C) 1995, 1996 Olaf Kirch */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif #include #include @@ -129,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;