Describe the bug
Trying to use conan packages of type shared-library that have chaining symlinks fails with conan 2.15+. This issue appears to have been introduced by #17964.
How to reproduce it
I was able to reproduce this issue with both csm/3.0.4, but I was unable to reproduce it with libsndio/1.9.0. Note their differences in symlinks.
# works
libsndio.so.7 -> libsndio.so.7.2
libsndio.so.7.0 -> libsndio.so.7.2
libsndio.so.7.2
# doesn't work
libcsmapi.so -> libcsmapi.so.3
libcsmapi.so.3 -> libcsmapi.so.3.0.4
libcsmapi.so.3.0.4
Both packages work without issue in Conan 2.14