X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fv4root.c;fp=utils%2Fmountd%2Fv4root.c;h=b0a10c8d319338eb3e6d90b408f004ff77d4007a;hp=d890181b5f2fab86ce60c26978884aab25e624fb;hb=37d9e4f9e0d1aeeb296583e40a36ae729786230d;hpb=5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index d890181..b0a10c8 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -162,6 +162,13 @@ v4root_set() nxt = exp->m_next; hostname = exp->m_export.e_hostname; + if (exp->m_export.e_flags & NFSEXP_V4ROOT) + /* + * We just added this one, so its + * parents are already dealt with! + */ + continue; + path = strdup(exp->m_export.e_path); for (ptr = path + 1; ptr; ptr = strchr(ptr, '/')) { int ret;