From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 487861388BF for ; Thu, 14 Jan 2016 17:33:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4456E0817; Thu, 14 Jan 2016 17:33:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A2DDE0817 for ; Thu, 14 Jan 2016 17:33:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7AA9340B0C for ; Thu, 14 Jan 2016 17:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09F40A91 for ; Thu, 14 Jan 2016 17:33:25 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1452735019.d4c7207ef3906daf6f8646e8deb6d968fe76cb36.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-misc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: d4c7207ef3906daf6f8646e8deb6d968fe76cb36 X-VCS-Branch: master Date: Thu, 14 Jan 2016 17:33:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 431562d0-f4c5-4d95-8f2a-6ed7ef4feea6 X-Archives-Hash: 3a0ac5c782eb1c150d02e79a8a31229e commit: d4c7207ef3906daf6f8646e8deb6d968fe76cb36 Author: William Hubbs gmail com> AuthorDate: Thu Jan 14 01:29:11 2016 +0000 Commit: William Hubbs gentoo 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