From 7086df56640b095669e6fcd72ca902cc497d6e17 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 23 Apr 2009 20:27:40 +0000 Subject: [PATCH] Don't include hotplugged services in manual. --- src/rc/rc-status.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index 88018262..2f386a41 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -297,9 +297,10 @@ rc_status(int argc, char **argv) } TAILQ_FOREACH_SAFE(s, services, entries, t) { if (rc_stringlist_find(sservices, s->value) || - rc_service_state(s->value) & RC_SERVICE_STOPPED) - { - TAILQ_REMOVE(services, s, entries); + rc_service_state(s->value) & + (RC_SERVICE_STOPPED | RC_SERVICE_HOTPLUGGED)) + { + TAILQ_REMOVE(services, s, entries); free(s->value); free(s); }