From 87597357116dffd4e1136c16aab431844877a247 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 8 Apr 2008 22:57:42 +0000 Subject: Give an error when running zap as a generic user. --- src/rc/runscript.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rc') diff --git a/src/rc/runscript.c b/src/rc/runscript.c index c2cef71c..2f96d7ac 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -1306,7 +1306,8 @@ int runscript(int argc, char **argv) } } else if (strcmp(optarg, "zap") == 0) { einfo("Manually resetting %s to stopped state", applet); - rc_service_mark(applet, RC_SERVICE_STOPPED); + if (!rc_service_mark(applet, RC_SERVICE_STOPPED)) + eerrorx("rc_service_mark: %s", strerror(errno)); uncoldplug(); } else svc_exec(optarg, NULL); -- cgit v1.2.3