Only allow one service to be provided by default.

Fixes Gentoo #293139.
This commit is contained in:
Roy Marples 2009-11-14 08:37:05 +00:00
parent 0de1d18d41
commit 509e34d425

View File

@ -346,8 +346,9 @@ get_provided(const RC_DEPINFO *depinfo, const char *runlevel, int options)
get_provided1(runlevel, providers, dt, bootlevel, false, RC_SERVICE_STOPPED))
return providers;
/* Still nothing? OK, list all services */
TAILQ_FOREACH(service, dt->services, entries)
/* Still nothing? OK, list our first provided service. */
service = TAILQ_FIRST(dt->services);
if (service != NULL)
rc_stringlist_add(providers, service->value);
return providers;