From 04e256e3b82ed36f61c375d83f8631a7b58bf28c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 27 Apr 2011 14:46:59 -0500 Subject: fix list returned by rc_service_extra_commands This function was returning the setting of the variable $opts, which is not correct. $opts was used in baselayout-1, but it is replaced by $extra_commands and $extra_started_commands in openrc. This does not appear to break backward compatibility since this function does not appear to be used anywhere in the openrc code. Thanks to James Le Cuirot for the original patch. X-Gentoo-Bug: 360013 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013 --- src/librc/librc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/librc/librc.c b/src/librc/librc.c index e134547e..f2f694df 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -525,7 +525,7 @@ rc_service_exists(const char *service) } librc_hidden_def(rc_service_exists) -#define OPTSTR ". '%s'; echo $opts" +#define OPTSTR ". '%s'; echo $extra_commands $extra_started_commands" RC_STRINGLIST * rc_service_extra_commands(const char *service) { -- cgit v1.2.3