From: Michael Tremer Date: Wed, 2 Jun 2021 16:04:00 +0000 (+0000) Subject: find-requires: Only scan regular files in the end X-Git-Tag: 0.9.28~1285^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=096f256e051a71629d05547fe433cc9600317f08;p=pakfire.git find-requires: Only scan regular files in the end Signed-off-by: Michael Tremer --- diff --git a/src/scripts/find-requires b/src/scripts/find-requires index a175c781e..58ec08836 100644 --- a/src/scripts/find-requires +++ b/src/scripts/find-requires @@ -212,6 +212,11 @@ main() { ;; esac + # Skip anything that isn't a regular file + if [ ! -f "${path}" ]; then + continue + fi + # Is this an ELF file? if file -L "${path}" 2>/dev/null | grep -q "ELF"; then # Find the ELF interpreter