From 7aaa601aad6c88176ec1c5f214153b358c54b379 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 17 Aug 2007 13:23:02 +0000 Subject: needsme should always be valid too --- src/librc-depend.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/librc-depend.c') diff --git a/src/librc-depend.c b/src/librc-depend.c index 71ea118a..67e51985 100644 --- a/src/librc-depend.c +++ b/src/librc-depend.c @@ -396,6 +396,7 @@ static void visit_service (rc_depinfo_t *deptree, char **types, { di = rc_get_depinfo (deptree, lp); if (di && (strcmp (item, "ineed") == 0 || + strcmp (item, "needsme") == 0 || valid_service (runlevel, di->service))) visit_service (deptree, types, sorted, visited, di, runlevel, options | RC_DEP_TRACE); @@ -404,6 +405,7 @@ static void visit_service (rc_depinfo_t *deptree, char **types, } else if (di && (strcmp (item, "ineed") == 0 || + strcmp (item, "needsme") == 0 || valid_service (runlevel, service))) visit_service (deptree, types, sorted, visited, di, runlevel, options | RC_DEP_TRACE); -- cgit v1.2.3