Bug fixed

echo /etc/fstab is wrong.
This commit is contained in:
cnrat 2016-03-29 16:35:39 +08:00
parent 0e9b63a6ed
commit fcaa7ffe8b
1 changed files with 1 additions and 1 deletions

View File

@ -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" } }'`