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>2015-06-17 18:13:44 +0300
committermboelen <michael@cisofy.com>2015-06-17 18:13:44 +0300
commit7d3053831195a1a700e079ea1373d17a5510866b (patch)
treec0a468dc0904c9271820c27ee82993beeefa6308
parentb947bb085c0baa34a30aa167efc3002a7248ae3b (diff)
Added missing bracket
-rw-r--r--include/tests_filesystems2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 9b7536e8..e302a3e5 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -270,7 +270,7 @@
# 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=="defaults") { print $1 }}' /etc/fstab`
+ FIND=`awk '{ if ($3=="swap" && ($4~/sw/ || $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)"