Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2018-07-25 13:13:06 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-07-25 13:13:06 +0300
commit54e8020edb7c69577b34b45d8defbab0e7c1fbf9 (patch)
tree783b4c02796a87f1384fcb433097085b2371c693 /include/tests_logging
parentc024ce31d8c5eb565134b65f0be59f28f786b6a4 (diff)
[LOGG-2190] ignore /dev/zero and /dev/[aio] as deleted files
Diffstat (limited to 'include/tests_logging')
-rw-r--r--include/tests_logging2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_logging b/include/tests_logging
index fe231f75..b7f86d8d 100644
--- a/include/tests_logging
+++ b/include/tests_logging
@@ -498,7 +498,7 @@
LSOF_GREP="${LSOF_GREP}|anacron|awk|run-parts"
fi
- FIND=$(${LSOFBINARY} -n +L 1 2>&1 | ${EGREPBINARY} -vw "${LSOF_GREP}" | ${AWKBINARY} '{ if ($5=="REG") { printf "%s(%s)\n", $10, $1 } }' | ${GREPBINARY} -v "^$" | ${SORTBINARY} -u)
+ FIND=$(${LSOFBINARY} -n +L 1 2>&1 | ${EGREPBINARY} -vw "${LSOF_GREP}" | ${EGREPBINARY} -v '/dev/zero|/\[aio\]' | ${AWKBINARY} '{ if ($5=="REG") { printf "%s(%s)\n", $10, $1 } }' | ${GREPBINARY} -v "^$" | ${SORTBINARY} -u)
if [ ! -z "${FIND}" ]; then
LogText "Result: found one or more files which are deleted, but still in use"
for I in ${FIND}; do