From 223e41031273abe65f5e4c4ae0fba0867acec35d Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Mon, 4 Jul 2016 17:38:09 +0200 Subject: [PATCH] Better test that actually checks for mount @drwetter can you test this? I don't have FreeBSD myself --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 38eef5f..c2fb700 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6644,7 +6644,7 @@ openssl_age() { } bsd-bash() { - if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(ls /dev/fd)") -le 3 ]]; then + if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(mount | grep '/dev/fd' | grep -q fdescfs)") -le 3 ]]; then echo "You need to mount fdescfs on FreeBSD: mount -t fdescfs fdesc /dev/fd" exit 1 fi