From 1d640618d001dc715d42132c0024457ee428d5b9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 29 Mar 2009 04:09:11 +0000 Subject: 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 --- bin/ebuild-helpers/ecompressdir | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ebuild-helpers/ecompressdir') 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 } -- cgit v1.2.3-1-g7c22