Skip to content

Commit 58463ab

Browse files
author
QUELIN Julien
committed
Fix for issue CISOfy#1578
1 parent 2a540dd commit 58463ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/tests_filesystems

+2-2
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,8 @@
860860
AVAILABLE_MODPROBE_FS=""
861861
for FS in ${LIST_FS_NOT_SUPPORTED}; do
862862
# Check if filesystem is present in modprobe output
863-
FIND=$(${MODPROBEBINARY} -v -n ${FS} 2>/dev/null | ${GREPBINARY} -E "/${FS}.ko" | ${TAILBINARY} -1)
864-
if [ -n "${FIND}" ]; then
863+
FIND=$(${MODPROBEBINARY} -v -n ${FS} 2>/dev/null)
864+
if [ $? -eq 0 ]; then
865865
LogText "Result: found ${FS} support in the kernel (output = ${FIND})"
866866
Debug "Module ${FS} present in the kernel"
867867
LogText "Test: Checking if ${FS} is active"

0 commit comments

Comments
 (0)