diff options
author | Andy Fiddaman <illumos@fiddaman.net> | 2022-10-23 13:18:26 +0000 |
---|---|---|
committer | Andy Fiddaman <illumos@fiddaman.net> | 2022-10-27 11:04:52 +0000 |
commit | 906c900b957aaea1b46e5b5115948389a6f91abc (patch) | |
tree | 800cc83c68e91023b2f7dca660237480a48f33dd /usr/src/tools/find_elf/find_elf.c | |
parent | a77feb921f890fb76d76c760a138d0c8e73ee4a0 (diff) | |
download | illumos-joyent-906c900b957aaea1b46e5b5115948389a6f91abc.tar.gz |
15116 find_elf does not find non-executable .so files
Reviewed by: Marco van Wieringen <mvw@planets.elm.net>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Dominik Hassler <hadfl@omnios.org>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/tools/find_elf/find_elf.c')
-rw-r--r-- | usr/src/tools/find_elf/find_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/tools/find_elf/find_elf.c b/usr/src/tools/find_elf/find_elf.c index 4ece9ac44a..e22b8ef5fc 100644 --- a/usr/src/tools/find_elf/find_elf.c +++ b/usr/src/tools/find_elf/find_elf.c @@ -808,7 +808,7 @@ maybe_obj(const char *name, mode_t mode) size_t len = strlen(name); /* If the file name ends in .so, we check */ - if (len >= 3 && strcmp(&name[len - 4], ".so") == 0) { + if (len >= 3 && strcmp(&name[len - 3], ".so") == 0) { return (true); } |