Use a better test to prevent tasting geom.ctl so we don't screw the

regression tests.
This commit is contained in:
phk 2002-10-24 21:32:49 +00:00
parent 5817ad8658
commit 291992383a

View File

@ -190,7 +190,7 @@ g_new_providerf(struct g_geom *gp, char *fmt, ...)
pp->geom = gp;
LIST_INSERT_HEAD(&gp->provider, pp, provider);
g_nproviders++;
if (g_nproviders > 1)
if (strcmp(pp->name, "geom.ctl"))
g_post_event(EV_NEW_PROVIDER, NULL, NULL, pp, NULL);
return (pp);
}