summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-12 02:40:28 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-12 02:40:28 +0000
commitc38a80f3681bb4182879217c689470ae0687bfe1 (patch)
treed7182c10eb114fb6a78814fe09a3b1054a0029c2
parent216d83fcd6d6bf9f8372276e4b1b77c649034fb5 (diff)
downloadportage-c38a80f3681bb4182879217c689470ae0687bfe1.tar.gz
portage-c38a80f3681bb4182879217c689470ae0687bfe1.tar.bz2
portage-c38a80f3681bb4182879217c689470ae0687bfe1.zip
Use posix compatible find -perm arguments. Thanks to Timothy Redaelli
<drizzt@g.o> for reporting. svn path=/main/trunk/; revision=13067
-rwxr-xr-xbin/misc-functions.sh4
1 files changed, 2 insertions, 2 deletions
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'