Use posix compatible find -perm arguments. Thanks to Timothy Redaelli
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Mar 2009 02:40:28 +0000 (02:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Mar 2009 02:40:28 +0000 (02:40 -0000)
<drizzt@g.o> for reporting.

svn path=/main/trunk/; revision=13067

bin/misc-functions.sh

index e5de713406fb801ff9a8cbc33ab6555ca9374728..f3da112721e16369817270ac1bdbc00c6a64b8b5 100755 (executable)
@@ -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'