mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge a2b3c48bfc into 52ed89ce35
This commit is contained in:
commit
73c9f27922
1 changed files with 4 additions and 0 deletions
|
|
@ -787,8 +787,12 @@
|
|||
exitcode=1
|
||||
file=$1
|
||||
find=""
|
||||
pattern=""
|
||||
if [ -n "${DPKGBINARY}" ]; then
|
||||
find=$(${DPKGBINARY} -S "${file}" 2> /dev/null | ${AWKBINARY} -F: '{print $1}')
|
||||
elif [ "${OS_NAME}" = "Slackware Linux" -a -d "${ROOTDIR}/var/lib/pkgtools/packages" ]; then
|
||||
pattern="${file//./\\.}"
|
||||
find=$(${GREPBINARY} -l "^${pattern#/}\(\.new\)\?$" ${ROOTDIR}/var/lib/pkgtools/packages/* | ${SEDBINARY} 's/^.\+\///')
|
||||
elif [ -n "${RPMBINARY}" ]; then
|
||||
find=$(${RPMBINARY} -qf "${file}" 2> /dev/null | ${AWKBINARY} -F- '{print $1}')
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue