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:
parent
6a0812645a
commit
647df8cfe7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user