From: Zac Medico Date: Fri, 11 Jan 2008 05:40:55 +0000 (-0000) Subject: Bug#204668 - Fix WORKDIR quoting in econf() when updating X-Git-Tag: v2.1.4~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f062288df103dd217c5201c38b7b210fb8b2491;p=portage.git Bug#204668 - Fix WORKDIR quoting in econf() when updating config.guess and config.sub. (trunk r9162) svn path=/main/branches/2.1.2/; revision=9171 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 56347fc9d..ef21d222d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -409,9 +409,11 @@ econf() { fi if [ -x "${ECONF_SOURCE}/configure" ]; then if [ -e /usr/share/gnuconfig/ ]; then - for x in $(find "${WORKDIR}" -type f '(' -name config.guess -o -name config.sub ')') ; do + find "${WORKDIR}" -type f '(' \ + -name config.guess -o -name config.sub ')' -print0 | \ + while read -d $'\0' x ; do vecho " * econf: updating ${x/${WORKDIR}\/} with /usr/share/gnuconfig/${x##*/}" - cp -f /usr/share/gnuconfig/${x##*/} ${x} + cp -f /usr/share/gnuconfig/"${x##*/}" "${x}" done fi