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-08-17 12:54:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-08-17 12:54:57 +0300
commit0050c993f845e663213feff0d58a98eb089408d9 (patch)
tree1b5043aeb5a7245a1586d95f9b6fac589e8228c7 /include
parent315c61982537060b383aa9fd75cad3a15f1105b2 (diff)
[FILE-6374] Improved logging
Diffstat (limited to 'include')
-rw-r--r--include/tests_filesystems2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index eb2f56ea..2b9ef919 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -501,7 +501,7 @@
EXPECTED_FLAGS=$(echo ${I} | cut -d: -f2 | sed 's/,/ /g')
IN_FSTAB=$(awk -v fs=${FILESYSTEM} '{ if ($2==fs) { print "FOUND" } }' /etc/fstab)
if [ ! "${IN_FSTAB}" = "" ]; then
- FOUND_FLAGS=$(awk -v fs=${FILESYSTEM} '{ if ($2==fs) { print $4 } }' /etc/fstab | sed 's/,/ /g')
+ FOUND_FLAGS=$(awk -v fs=${FILESYSTEM} '{ if ($2==fs) { print $4 } }' /etc/fstab | sed 's/,/ /g' | tr '\n' ' ')
LogText "File system: ${FILESYSTEM}"
LogText "Expected flags: ${EXPECTED_FLAGS}"
LogText "Found flags: ${FOUND_FLAGS}"