On Mar 11, 2013 9:12 AM, "Timothée Ravier" <[email protected]> wrote: > A friend of mine found that with the current configuration system, it is > possible for a unit to include itself thus creating an infinite loop.
Oops... > I see two ways to fix this problem for good: > > * Limit the include depth arbitrarily and fail when reached; Please don't :-) > * Remember which files systemd has already parsed and skip those if > found in a ".include" directive. This, but fail the unit. As unit file entries are not commutative there is no correct place to 'cut the loop', so simply skipping already included files would be incorrect. Make sure to only fail on real cycles though: If A includes B and C, we still want to allow both B and C to include D. Thanks for the report. Cheers, Tom
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
