diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-07 17:56:02 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-08 12:09:33 -0600 |
commit | 9f6e05671d6d48faa7b83aec05a637bcdfcb3f82 (patch) | |
tree | 9bd6a120ddac1c57eda065dac7d98e6280ec8996 /src/rc/rc-misc.c | |
parent | 8addd7913a743b75ef3854ab4a96fea81cc5245d (diff) |
Convert rc_sys() calls to detect_container() and detect_vm()
Diffstat (limited to 'src/rc/rc-misc.c')
-rw-r--r-- | src/rc/rc-misc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 1e2af0ab..263c0eda 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -139,7 +139,7 @@ env_config(void) char *np; char *npp; char *tok; - const char *sys = rc_sys(); + const char *sys = NULL; char buffer[PATH_MAX]; /* Ensure our PATH is prefixed with the system locations first @@ -190,7 +190,9 @@ env_config(void) } else setenv("RC_DEFAULTLEVEL", RC_LEVEL_DEFAULT, 1); - if (sys) + sys = detect_container(); + if (!sys) + sys = detect_vm(); setenv("RC_SYS", sys, 1); #ifdef PREFIX |