From d6c72cc87c1134dbd16ebafc1f63f712a08b89e1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 2 Jul 2007 19:57:18 +0000 Subject: Fix error and only let root run init commands except for status and help --- src/librc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/librc.c') diff --git a/src/librc.c b/src/librc.c index cd085102..6392426b 100644 --- a/src/librc.c +++ b/src/librc.c @@ -224,11 +224,10 @@ bool rc_mark_service (const char *service, const rc_service_state_t state) unlink (file); i = symlink (init, file); if (i != 0) { + eerror ("symlink `%s' to `%s': %s", init, file, strerror (errno)); free (file); free (init); free (svc); - einfo ("%d %s %s", state, rc_service_state_names[state], base); - eerror ("symlink `%s' to `%s': %s", init, file, strerror (errno)); return (false); } -- cgit v1.2.3