summaryrefslogtreecommitdiff
path: root/src/librc/librc.h
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-07-09 23:05:11 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-07-09 23:15:16 +0200
commitef22868f3668fe833cdf297e619afe5b721f7716 (patch)
treec560faaa3a6d6377678b1408ae5ca0df2b3c47e0 /src/librc/librc.h
parent0c7032840b746bc5f1e5f6cb90ad50b5da0a4fce (diff)
downloadopenrc-ef22868f3668fe833cdf297e619afe5b721f7716.tar.gz
openrc-ef22868f3668fe833cdf297e619afe5b721f7716.tar.bz2
openrc-ef22868f3668fe833cdf297e619afe5b721f7716.tar.xz
Do not skip similar config options
OpenRC goes through the config and checks each option for duplicates. Lets say we're on "rc_logger" currently and its the last option in the config file and we previously defined rc_logger_path. It now goes through all previous config options and compares those against the current one "rc_logger" *but* it compares only the first N bytes, in this case strlen("rc_logger"). So it strips the _path from "rc_logger_path" which ends up into "rc_logger" and it compares that against the current one (also "rc_logger"), it would then simply override the previous definition. This patch fixes this behaviour to always compare the full option / variable names.
Diffstat (limited to 'src/librc/librc.h')
0 files changed, 0 insertions, 0 deletions