From 321615496399b91185ec4e4c391e01e45c8afac0 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Wed, 14 May 2008 08:31:58 +0000 Subject: change strategy when recursing files from accepting everything but some exceptions to rejecting everything but files, for more robustness --- strip_and_check_elf_files | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'strip_and_check_elf_files') diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index 7b9d28a..2f56bc0 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -57,10 +57,8 @@ sub expensive_test { # for use by File::Find. It'll fill the following 3 arrays with anything # it finds: sub keep_wanted() { - # skip symlinks - return if -l $_; - # skip directories - return if -d $_; + # skip everything but files + return unless -f $_; # Does its filename look like a shared library? if (m/\.so/) { -- cgit v1.2.1