]> git.ipfire.org Git - ipfire-2.x.git/blame - tools/find-missing-libs.sh
zabbix_agentd: Bugfix for /etc/sudoers.d/zabbix.user
[ipfire-2.x.git] / tools / find-missing-libs.sh
CommitLineData
21eead8d
MT
1#!/bin/bash
2# This scripts lists binaries that have missing libraries.
3# Arguments are paths to search in
4
5main() {
6 local path
7 for path in $@; do
8 local file
9 for file in $(find "${path}" -type f); do
10 if ldd "${file}" 2>/dev/null | grep -q "not found"; then
11 echo "${file}"
12 ldd "${file}"
13 fi
14 done
15 done
16}
17
18main "$@" || exit $?