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:
authormboelen <michael@cisofy.com>2014-09-08 16:53:44 +0400
committermboelen <michael@cisofy.com>2014-09-08 16:53:44 +0400
commitd983b6ba48a001887e10e8b900e0d3ec4d102931 (patch)
tree7cff949cd87a8c63c4de40687f160be3bc0db661 /include/tests_filesystems
parentc5b9e186e2461e4aabff7977e1eb424be5c0c857 (diff)
Fixed statement to check swap
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r--include/tests_filesystems2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 629ee97e..2d36a2a0 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -223,7 +223,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
# Swap partitions should be mounted with 'sw' or 'swap'
logtext "Test: check swap partitions with incorrect mount options"
- FIND=`awk '{ if ($3=="swap" && ($4!="sw" && $4!="swap" $4!="defaults")) print $1 }' /etc/fstab`
+ FIND=`awk '{ if ($3=="swap" && ($4!="sw" && $4!="swap" && $4!="defaults")) print $1 }' /etc/fstab`
if [ "${FIND}" = "" ]; then
Display --indent 2 --text "- Testing swap partitions..." --result OK --color GREEN
logtext "Result: all swap partitions have correct options (sw or swap)"