commit: d4c7207ef3906daf6f8646e8deb6d968fe76cb36 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Thu Jan 14 01:29:11 2016 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Thu Jan 14 01:30:19 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=d4c7207e
fix seg fault src/rc/rc-misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 6dfa423..f01d1f8 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -179,6 +179,8 @@ env_config(void) sys = detect_container(); if (!sys) sys = detect_vm(); + + if (sys) setenv("RC_SYS", sys, 1); #ifdef PREFIX