1 |
commit: 04e256e3b82ed36f61c375d83f8631a7b58bf28c |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 27 19:46:59 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 19:46:59 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=04e256e3 |
7 |
|
8 |
fix list returned by rc_service_extra_commands |
9 |
|
10 |
This function was returning the setting of the variable $opts, which is |
11 |
not correct. $opts was used in baselayout-1, but it is replaced by |
12 |
$extra_commands and $extra_started_commands in openrc. |
13 |
|
14 |
This does not appear to break backward compatibility since this function |
15 |
does not appear to be used anywhere in the openrc code. |
16 |
|
17 |
Thanks to James Le Cuirot for the original patch. |
18 |
|
19 |
X-Gentoo-Bug: 360013 |
20 |
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=360013 |
21 |
|
22 |
--- |
23 |
src/librc/librc.c | 2 +- |
24 |
1 files changed, 1 insertions(+), 1 deletions(-) |
25 |
|
26 |
diff --git a/src/librc/librc.c b/src/librc/librc.c |
27 |
index e134547..f2f694d 100644 |
28 |
--- a/src/librc/librc.c |
29 |
+++ b/src/librc/librc.c |
30 |
@@ -525,7 +525,7 @@ rc_service_exists(const char *service) |
31 |
} |
32 |
librc_hidden_def(rc_service_exists) |
33 |
|
34 |
-#define OPTSTR ". '%s'; echo $opts" |
35 |
+#define OPTSTR ". '%s'; echo $extra_commands $extra_started_commands" |
36 |
RC_STRINGLIST * |
37 |
rc_service_extra_commands(const char *service) |
38 |
{ |