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>2016-09-24 16:27:42 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-09-24 16:27:42 +0300
commit263c0b558bb7a054c2a6aec82e997922980271d5 (patch)
tree57ac3402398e0139d96b985e30c2ba5c32e35e2a
parent1bc29ebb2eedf7a337f64317fca277474fbb334b (diff)
Changes to show more details for warnings
-rw-r--r--include/report2
-rw-r--r--include/tests_ports_packages2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/report b/include/report
index 2de28e9b..e38d29ad 100644
--- a/include/report
+++ b/include/report
@@ -119,7 +119,7 @@
SOLUTION=""
SHOWWARNING=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: //' | sed 's/\[details:\(.*\)\] \[solution:\(.*\)\]//' | sed 's/test://')
ADDLINK=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[test://' | sed 's/\]\(.*\)]//')
- DETAILS=$(echo ${SUGGESTION} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//')
+ DETAILS=$(echo ${WARNING} | sed 's/!space!/ /g' | sed 's/^.* Warning: \(.*\)\[details://' | sed 's/\]\(.*\)]//')
SUGGESTION_PIECES=$(echo ${WARNING} | sed 's/\[/ [/g')
for PIECE in ${SUGGESTION_PIECES}; do
if [ -z "${SOLUTION}" ]; then
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index aa1a9019..593b3eb3 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -311,7 +311,7 @@
Report "vulnerable_package[]=${ITEM}"
AddHP 1 2
done
- ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "solution:Update packages with pacman -Suy"
+ ReportWarning "${TEST_NO}" "Vulnerable packages found" "arch-audit" "text:Update packages with pacman -Suy"
fi
fi
#