For compatibility with older findutils, don't use the -L predicate (bug #168432)...
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Feb 2007 04:56:06 +0000 (04:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Feb 2007 04:56:06 +0000 (04:56 -0000)
svn path=/main/branches/2.1.2/; revision=6087

bin/ecompressdir

index a95e1a2054118ebcb14d6607af9584fa6554e38a..163230dda3cdf11abdfff96fce355ca143cc28f0 100755 (executable)
@@ -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}" \