From d179d23193f79d933e2406705e5a4c2709d7b713 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 15 Feb 2007 20:21:49 +0000 Subject: Fix CONFIG_PROTECT_MASK support. Thanks to piavlo for this patch from bug #166837. svn path=/main/trunk/; revision=5969 --- bin/etc-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/etc-update b/bin/etc-update index 17a008bf6..b51b1b670 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -60,7 +60,8 @@ function scan() { rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::") rfile=$(echo "${file/\/\///}" | sed -e "s:^.*/::") for mpath in ${CONFIG_PROTECT_MASK}; do - mpath="${ROOT}${path}" + mpath="${ROOT}${mpath}" + mpath=$(echo ${mpath/\/\///}) if [[ "${rpath}" == "${mpath}"* ]]; then mv ${rpath}/${rfile} ${rpath}/${rfile:10} break -- cgit v1.2.3-1-g7c22