--- /usr/lib/portage/bin/etc-update 2007-02-13 15:19:05.000000000 +0200 +++ cs-etc-update 2007-02-14 15:32:44.000000000 +0200 @@ -60,7 +60,8 @@ 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