diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-27 04:54:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-27 04:54:18 +0000 |
commit | e6f6ad0b1971d83caf1f16f000bc2f168fa99693 (patch) | |
tree | 35a96b547762f558e184edbb6ef2e6e04f0a3713 | |
parent | 968cffcfae293377c60460bf654efbcecd982228 (diff) | |
download | portage-e6f6ad0b1971d83caf1f16f000bc2f168fa99693.tar.gz portage-e6f6ad0b1971d83caf1f16f000bc2f168fa99693.tar.bz2 portage-e6f6ad0b1971d83caf1f16f000bc2f168fa99693.zip |
For compatibility with older findutils, don't use the -L predicate (bug #168432).
svn path=/main/trunk/; revision=6086
-rwxr-xr-x | bin/ecompressdir | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ecompressdir b/bin/ecompressdir index a95e1a205..163230dda 100755 --- a/bin/ecompressdir +++ b/bin/ecompressdir @@ -32,8 +32,9 @@ funk_up_dir() { find "${dir}" -type f ${negate} -iname '*.'${suffix} -print0 | ${XARGS} -0 ${binary} ((ret+=$?)) - find -L "${dir}" -type l | \ - while read brokenlink ; do + find "${dir}" -type l -print0 | \ + while read -d $'\0' brokenlink ; do + [[ -e ${brokenlink} ]] && continue olddest=$(readlink "${brokenlink}") [[ ${act} == "compress" ]] \ && newdest="${olddest}${suffix}" \ |