Bug#204668 - Fix WORKDIR quoting in econf() when updating
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Jan 2008 00:05:39 +0000 (00:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Jan 2008 00:05:39 +0000 (00:05 -0000)
config.guess and config.sub.

svn path=/main/trunk/; revision=9162

bin/ebuild.sh

index 56347fc9d95b516cc13c9153f75bacf3478d2484..ef21d222d696252edacc936f04f1287cbbb1b351 100755 (executable)
@@ -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