follow symlinks and ignore 'file' errors
authorewt <devnull@localhost>
Tue, 19 Nov 1996 20:35:51 +0000 (20:35 +0000)
committerewt <devnull@localhost>
Tue, 19 Nov 1996 20:35:51 +0000 (20:35 +0000)
CVS patchset: 1179
CVS date: 1996/11/19 20:35:51

autodeps/linux.prov

index 8e990c3..d82091b 100644 (file)
@@ -3,7 +3,7 @@
 # This script reads filenames from STDIN and outputs any relevant provides
 # information that needs to be included in the package.
 
-filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file | grep "ELF.*shared object" | cut -d: -f1)
+filelist=$(grep "\\.so" | grep -v "^/lib/ld.so" | xargs file -L 2>/dev/null | grep "ELF.*shared object" | cut -d: -f1)
 
 for f in $filelist; do
     soname=$(objdump --raw $f --section=.dynstr 2> /dev/null | tr '\0' '\n' | tail -1)