From: Zac Medico Date: Thu, 12 Mar 2009 05:56:37 +0000 (-0000) Subject: Use posix compatible find -perm arguments. Thanks to Timothy Redaelli X-Git-Tag: v2.1.6.8~11 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e94d768ad75ff6e99cfaa104298a891a1b0d1c91;p=portage.git Use posix compatible find -perm arguments. Thanks to Timothy Redaelli for reporting. (trunk r13067) svn path=/main/branches/2.1.6/; revision=13081 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index e5de71340..f3da11272 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -75,8 +75,8 @@ install_qa_check() { 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'