From fcaa7ffe8b0eb7ef6003635d4241ca4f37f8e188 Mon Sep 17 00:00:00 2001 From: cnrat Date: Tue, 29 Mar 2016 16:35:39 +0800 Subject: [PATCH] Bug fixed echo /etc/fstab is wrong. --- include/tests_filesystems | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_filesystems b/include/tests_filesystems index 0da905f1..c174632b 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -445,7 +445,7 @@ Register --test-no FILE-6372 --os Linux --weight L --network NO --description "Checking / mount options" if [ ${SKIPTEST} -eq 0 ]; then if [ -f /etc/fstab ]; then - FIND=`echo /etc/fstab | awk '{ if ($2=="/") { print $4 } }'` + FIND=`cat /etc/fstab | awk '{ if ($2=="/") { print $4 } }'` NODEV=`echo ${FIND} | awk '{ if ($1=="nodev") { print "YES" } else { print "NO" } }'` NOEXEC=`echo ${FIND} | awk '{ if ($1=="noexec") { print "YES" } else { print "NO" } }'` NOSUID=`echo ${FIND} | awk '{ if ($1=="nosuid") { print "YES" } else { print "NO" } }'`