public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13067 - main/trunk/bin
@ 2009-03-12  2:40 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-12  2:40 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-12 02:40:28 +0000 (Thu, 12 Mar 2009)
New Revision: 13067

Modified:
   main/trunk/bin/misc-functions.sh
Log:
Use posix compatible find -perm arguments. Thanks to Timothy Redaelli
<drizzt@g.o> for reporting.


Modified: main/trunk/bin/misc-functions.sh
===================================================================
--- main/trunk/bin/misc-functions.sh	2009-03-12 01:45:52 UTC (rev 13066)
+++ main/trunk/bin/misc-functions.sh	2009-03-12 02:40:28 UTC (rev 13067)
@@ -75,8 +75,8 @@
 		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'




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-12  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-12  2:40 [gentoo-commits] portage r13067 - main/trunk/bin Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox