summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-15 20:21:49 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-15 20:21:49 +0000
commitd179d23193f79d933e2406705e5a4c2709d7b713 (patch)
tree0830f1a8ffdd0499b0c03172b795b591ae09ea5d /bin/etc-update
parent0d208d7bace79f104c95b0438eb27885a64906ac (diff)
downloadportage-d179d23193f79d933e2406705e5a4c2709d7b713.tar.gz
portage-d179d23193f79d933e2406705e5a4c2709d7b713.tar.bz2
portage-d179d23193f79d933e2406705e5a4c2709d7b713.zip
Fix CONFIG_PROTECT_MASK support. Thanks to piavlo <piavka@cs.bgu.ac.il> for this patch from bug #166837.
svn path=/main/trunk/; revision=5969
Diffstat (limited to 'bin/etc-update')
-rwxr-xr-xbin/etc-update3
1 files changed, 2 insertions, 1 deletions
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