diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-29 04:09:11 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-29 04:09:11 +0000 |
commit | 1d640618d001dc715d42132c0024457ee428d5b9 (patch) | |
tree | 875f54ab63e6972bb11de3f599287103e81fd131 /bin/ebuild-helpers/ecompressdir | |
parent | de8d6857a622b83e14ce9b26ae6f4f00da6b671c (diff) | |
download | portage-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-x | bin/ebuild-helpers/ecompressdir | 4 |
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 } |