adding badlibs
This commit is contained in:
parent
a81ada1c0e
commit
74093d603f
1 changed files with 14 additions and 0 deletions
14
shell/badlibs.sh
Executable file
14
shell/badlibs.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Search all binaries in $PATH for missing shared libs
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
IFS=:
|
||||
for BINDIR in ${PATH}; do
|
||||
BINS=$(find "${BINDIR}" -type f -printf "%p:")
|
||||
for BIN in ${BINS}; do
|
||||
ldd "${BIN}" 2>/dev/null | grep -i "not found" | cut -d ' ' -f1 | \
|
||||
xargs -I '{}' printf "${BIN},%s\n" '{}'
|
||||
done
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue