abuild: use gnu find supported way to find suid binaries

This commit is contained in:
Timo Teräs 2016-02-22 14:07:16 +02:00
parent d1ab7ed40f
commit 5c05446d07
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ postcheck() {
echo "$i" echo "$i"
fi fi
# check so we dont have any suid root binaries that are not PIE # check so we dont have any suid root binaries that are not PIE
i=$(find "$dir" -type f -perm +6000 \ i=$(find "$dir" -type f -perm /6000 \
| xargs scanelf --nobanner --etype ET_EXEC \ | xargs scanelf --nobanner --etype ET_EXEC \
| sed "s|ET_EXEC $dir|\t|") | sed "s|ET_EXEC $dir|\t|")
if [ -n "$i" ]; then if [ -n "$i" ]; then