<drizzt@g.o> for reporting. (trunk r13067)
svn path=/main/branches/2.1.6/; revision=13081
f=$(scanelf -qyRF '%r %p' "${D}" | grep -E "(${PORTAGE_BUILDDIR}|: |::|^:|^ )")
# Reject set*id binaries with $ORIGIN in RPATH #260331
x=$(
- find "${D}" -type f -perm /6000 -print0 | xargs -0 \
- scanelf -qyRF '%r %p' | grep '$ORIGIN'
+ find "${D}" -type f \( -perm -u+s -o -perm -g+s \) -print0 | \
+ xargs -0 scanelf -qyRF '%r %p' | grep '$ORIGIN'
)
if [[ -n ${f}${x} ]] ; then
vecho -ne '\a\n'