commit:     73482cf13a338051606788957cbd0031ac850c70
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Jan 18 21:09:31 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 21:09:31 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=73482cf1

librc: fix librc-depend functions to call rc_sys

 src/librc/librc-depend.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c
index 991a871..d64b2b2 100644
--- a/src/librc/librc-depend.c
+++ b/src/librc/librc-depend.c
@@ -740,7 +740,7 @@ rc_deptree_update(void)
        char *depend, *depends, *service, *type, *nosys, *onosys;
        size_t i, k, l;
        bool retval = true;
-       const char *sys = NULL;
+       const char *sys = rc_sys();
        struct utsname uts;
 
        /* Some init scripts need RC_LIBEXECDIR to source stuff
@@ -847,9 +847,6 @@ rc_deptree_update(void)
 
        /* Phase 2 - if we're a special system, remove services that don't
         * work for them. This doesn't stop them from being run directly. */
-       sys = detect_container();
-               if (!sys)
-                       sys = detect_vm();
        if (sys) {
                len = strlen(sys);
                nosys = xmalloc(len + 2);

Reply via email to