Make sure old rc_sys code never runs if the rc_sys variable exists.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2011-01-05 22:33:03 -08:00
parent 6a0812645a
commit 647df8cfe7

View File

@ -290,9 +290,11 @@ librc_hidden_def(rc_sys_v1)
const char *
rc_sys(void)
{
const char *s = rc_sys_v2();
if(s) return s;
if(rc_conf_value("rc_sys")) {
return rc_sys_v2();
} else {
return rc_sys_v1();
}
}
librc_hidden_def(rc_sys)