summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-02-15 20:25:49 +0000
committerZac Medico <zmedico@gentoo.org>2007-02-15 20:25:49 +0000
commit7b5c05890e555647c739da37cacdcadbdd71412b (patch)
tree6e1d3d16bb3540ebcfb96300795f3c67cd452135 /bin/etc-update
parent74c87ac635b3eebba28475762d1e79c55f2c44e3 (diff)
downloadportage-7b5c05890e555647c739da37cacdcadbdd71412b.tar.gz
portage-7b5c05890e555647c739da37cacdcadbdd71412b.tar.bz2
portage-7b5c05890e555647c739da37cacdcadbdd71412b.zip
Fix CONFIG_PROTECT_MASK support. Thanks to piavlo <piavka@cs.bgu.ac.il> for this patch from bug #166837. (trunk r5968:5970)
svn path=/main/branches/2.1.2/; revision=5971
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..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