olsrd: find_most_recent_plugin_libary() fix input with 'exact' filenames

This commit is contained in:
Bastian Bittorf 2017-02-14 08:58:22 +01:00
parent c91ced7279
commit f15b8246fa
1 changed files with 1 additions and 0 deletions

View File

@ -477,6 +477,7 @@ find_most_recent_plugin_libary()
for file in "/lib/$library"* "/usr/lib/$library"* "/usr/local/lib/$library"*; do {
[ -f "$file" ] && {
file="$( basename "$file" )"
# make sure that we do not select
# 'olsrd_dyn_gw_plain.so.0.4' if user wants
# 'olsrd_dyn_gw.so.0.5' -> compare part before 1st dot