From bbc6b96a4012b0ec176bd1e082642c12612e88cb Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 9 Feb 2013 17:39:32 -0600 Subject: oldnet: accomodate rkhunter false positive rkhunter thinks OpenRC is a rootkit because of the hidefirstrout variable. This has been renamed to hideFirstroute in order to get past rkhunter. I realize this is not an openrc bug. In this case though I do not have a problem renaming the variable. Reported-by: ago@gentoo.org X-Gentoo-Bug: 339714 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=339714 --- init.d/net.lo.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 32ca810..fbc0124 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -633,7 +633,7 @@ start() return 1 fi - local hidefirstroute=false first=true routes= + local hideFirstroute=false first=true routes= if ${fallback}; then routes="$(_get_array "fallback_routes_${IFVAR}")" fi @@ -644,7 +644,7 @@ start() if [ "${config_0}" != "null" ]; then routes="127.0.0.0/8 via 127.0.0.1 ${routes}" - hidefirstroute=true + hideFirstroute=true fi fi @@ -676,9 +676,9 @@ ${routes}" *:*/*) cmd="-net ${cmd}";; *) cmd="-host ${cmd}";; esac - if ${hidefirstroute}; then + if ${hideFirstroute}; then _add_route ${fam} ${cmd} >/dev/null 2>&1 - hidefirstroute=false + hideFirstroute=false else _add_route ${fam} ${cmd} >/dev/null fi -- cgit v1.2.3