summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-12-29 10:28:25 -0800
committerZac Medico <zmedico@gentoo.org>2010-12-29 10:28:25 -0800
commit1bed4ba3bbc019ee267a37bc28109e4e3deb3af3 (patch)
tree7b2b789e77758eb72238bd72722b9722f12f674e /bin/ebuild-helpers
parentf4e2a596a3b4bfb22d7910e7eb3fff4a5c31fad5 (diff)
downloadportage-1bed4ba3bbc019ee267a37bc28109e4e3deb3af3.tar.gz
portage-1bed4ba3bbc019ee267a37bc28109e4e3deb3af3.tar.bz2
portage-1bed4ba3bbc019ee267a37bc28109e4e3deb3af3.zip
bash: as a general rule, use read -r
This solves cases like bug #350045.
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/ecompressdir4
-rwxr-xr-xbin/ebuild-helpers/prepallman2
-rwxr-xr-xbin/ebuild-helpers/prepinfo2
3 files changed, 4 insertions, 4 deletions
diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir
index 7ed2627e3..7a95120a9 100755
--- a/bin/ebuild-helpers/ecompressdir
+++ b/bin/ebuild-helpers/ecompressdir
@@ -63,7 +63,7 @@ funk_up_dir() {
((ret|=$?))
find "${dir}" -type l -print0 | \
- while read -d $'\0' brokenlink ; do
+ while read -r -d $'\0' brokenlink ; do
[[ -e ${brokenlink} ]] && continue
olddest=$(readlink "${brokenlink}")
[[ ${act} == "compress" ]] \
@@ -86,7 +86,7 @@ _relocate_skip_dirs() {
[[ -d ${srctree} ]] || return 0
find "${srctree}" -name '*.ecompress.skip' -print0 | \
- while read -d $'\0' src ; do
+ while read -r -d $'\0' src ; do
src=${src%.ecompress.skip}
dst="${dsttree}${src#${srctree}}"
parent=${dst%/*}
diff --git a/bin/ebuild-helpers/prepallman b/bin/ebuild-helpers/prepallman
index 4568bac1d..574ab6251 100755
--- a/bin/ebuild-helpers/prepallman
+++ b/bin/ebuild-helpers/prepallman
@@ -10,7 +10,7 @@ hasq "${EAPI}" 0 1 2 3 || exit 0
ret=0
find "${D}" -type d -name man > "${T}"/prepallman.filelist
-while read mandir ; do
+while read -r mandir ; do
mandir=${mandir#${D}}
prepman "${mandir%/man}"
((ret|=$?))
diff --git a/bin/ebuild-helpers/prepinfo b/bin/ebuild-helpers/prepinfo
index cbbba3ed0..9552923a3 100755
--- a/bin/ebuild-helpers/prepinfo
+++ b/bin/ebuild-helpers/prepinfo
@@ -23,7 +23,7 @@ if [[ ! -d ${D}${infodir} ]] ; then
fi
fi
-find "${D}${infodir}" -type d -print0 | while read -d $'\0' x ; do
+find "${D}${infodir}" -type d -print0 | while read -r -d $'\0' x ; do
for f in "${x}"/.keepinfodir*; do
[[ -e ${f} ]] && continue 2
done