Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ibacm: check provider file ends with .so extension
acm_open_providers() reads filenames and checks to see if the filenames contain the .so (shared object) extension via strstr(). But this does not verify that the extension is found at the end of the filename - only that .so is a substring somewhere in the filename. This means filenames of the sort "libibacmp.so.org" will be matched and loaded as providers. The check should be modified to verify that the extension is at the end of the filename. Signed-off-by: Mark Haywood <[email protected]>
- Loading branch information