summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/ecompressdir
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-29 04:09:11 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-29 04:09:11 +0000
commit1d640618d001dc715d42132c0024457ee428d5b9 (patch)
tree875f54ab63e6972bb11de3f599287103e81fd131 /bin/ebuild-helpers/ecompressdir
parentde8d6857a622b83e14ce9b26ae6f4f00da6b671c (diff)
downloadportage-1d640618d001dc715d42132c0024457ee428d5b9.tar.gz
portage-1d640618d001dc715d42132c0024457ee428d5b9.tar.bz2
portage-1d640618d001dc715d42132c0024457ee428d5b9.zip
In order to eliminate the possibility of integer overflay, replace things like
((ret+=$?)) with ((ret|=$?)). Thanks to zong_sharo for the suggestion. svn path=/main/trunk/; revision=13242
Diffstat (limited to 'bin/ebuild-helpers/ecompressdir')
-rwxr-xr-xbin/ebuild-helpers/ecompressdir4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/ecompressdir b/bin/ebuild-helpers/ecompressdir
index 4dd35e549..297b46777 100755
--- a/bin/ebuild-helpers/ecompressdir
+++ b/bin/ebuild-helpers/ecompressdir
@@ -54,7 +54,7 @@ funk_up_dir() {
# first we act on all the files
find "${dir}" -type f ${negate} -iname '*'${suffix} -print0 | ${XARGS} -0 ${binary}
- ((ret+=$?))
+ ((ret|=$?))
find "${dir}" -type l -print0 | \
while read -d $'\0' brokenlink ; do
@@ -67,7 +67,7 @@ funk_up_dir() {
[[ ${act} == "compress" ]] \
&& ln -snf "${newdest}" "${brokenlink}${suffix}" \
|| ln -snf "${newdest}" "${brokenlink%${suffix}}"
- ((ret+=$?))
+ ((ret|=$?))
done
}