]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
find-requires: Only scan regular files in the end
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Jun 2021 16:04:00 +0000 (16:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Jun 2021 16:04:00 +0000 (16:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/find-requires

index a175c781e97ce7b7c78ad081a6319b82bcce71d9..58ec08836a0cc65d4b1c3b795aac912a7c93fd91 100644 (file)
@@ -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