When checking existence of providers skip those which are orphaned.

PR:		kern/132273
MFC after:	2 week
This commit is contained in:
Andrey V. Elsukov 2011-05-04 12:59:11 +00:00
parent 6edc5d5ab4
commit 370efd743a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=221433

View File

@ -164,6 +164,8 @@ g_label_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
pp2 = LIST_FIRST(&gp->provider);
if (pp2 == NULL)
continue;
if ((pp2->flags & G_PF_ORPHAN) != 0)
continue;
if (strcmp(pp2->name, name) == 0) {
G_LABEL_DEBUG(1, "Label %s(%s) already exists (%s).",
label, name, pp->name);