The libbfd library has a constantly changing, non-standard and
very long name, eg:
/usr/lib64/libbfd-2.20.51.0.2-7.fc13.so
Just add a special case to deal with this. This fixes the guestfs_strings
command, which relies on the external strings binary which uses this
library.
elif [[ "$file" =~ '^ld-[.0-9]+\.so$' ]]; then
echo "$dir/ld-*.so" >&6
+ # Special case for libbfd
+ elif [[ "$file" =~ '^libbfd-.*\.so$' ]]; then
+ echo "$dir/libbfd-*.so" >&6
+
# libfoo-1.2.3.so
elif [[ "$file" =~ '^lib(.*)-[-.0-9]+\.so$' ]]; then
echo "$dir/lib${BASH_REMATCH[1]}-*.so" >&6