From 7b5c05890e555647c739da37cacdcadbdd71412b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 15 Feb 2007 20:25:49 +0000 Subject: Fix CONFIG_PROTECT_MASK support. Thanks to piavlo for this patch from bug #166837. (trunk r5968:5970) svn path=/main/branches/2.1.2/; revision=5971 --- bin/etc-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/etc-update b/bin/etc-update index 17a008bf6..858a6b98c 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