summaryrefslogtreecommitdiffstats
path: root/bin/etc-update
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-19 01:00:09 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-19 01:00:09 +0000
commit013c16b4eb1a55f1b1b92e640a296c0cefbe4e57 (patch)
treead3fc15b82284dc7099ab124d0b7a0fb4cdd7196 /bin/etc-update
parent4411629ce8fd881f60119ee781fe51eb69254fe5 (diff)
downloadportage-013c16b4eb1a55f1b1b92e640a296c0cefbe4e57.tar.gz
portage-013c16b4eb1a55f1b1b92e640a296c0cefbe4e57.tar.bz2
portage-013c16b4eb1a55f1b1b92e640a296c0cefbe4e57.zip
Turn off file name globbing during expansion of ${find_opts} for bug #148115.
svn path=/main/trunk/; revision=4476
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 09acb7134..6fffc0f38 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -52,7 +52,8 @@ function scan() {
fi
ofile=""
- for file in $(find ${path}/ ${find_opts} ! -name '.*~' ! -name '.*.bak' |
+ # The below set -f turns off file name globbing in the ${find_opts} expansion.
+ for file in $(set -f; find ${path}/ ${find_opts} ! -iname '.*~' ! -iname '.*.bak' |
sed -e "s:\(^.*/\)\(\._cfg[0-9]*_\)\(.*$\):\1\2\3\%\2\%\3:" |
sort -t'%' -k3 -k2 | LANG=POSIX LC_ALL=POSIX cut -f1 -d'%'); do
rpath=$(echo "${file/\/\///}" | sed -e "s:/[^/]*$::")