From db468457dc4c1b15f62b09d70a43d418343020b8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 9 Oct 2007 15:47:25 +0000 Subject: Foo, should be a mask --- src/runscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/runscript.c b/src/runscript.c index 5198b460..a4eefffe 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -1223,7 +1223,7 @@ int runscript (int argc, char **argv) } else if (strcmp (optarg, "status") == 0) { rc_service_state_t r = svc_status (service); retval = (int) r; - if (retval == RC_SERVICE_STARTED) + if (retval & RC_SERVICE_STARTED) retval = 0; } else if (strcmp (optarg, "help") == 0) { execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, "help", (char *) NULL); -- cgit v1.2.3