From 946506f3ac55ff312bc0ca2ea48bd683aaa3f18c Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Sun, 3 Jul 2016 19:52:48 +0200 Subject: [PATCH] This Fixes #258 - Checks if /dev/fd is mounted on FreeBSD --- testssl.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testssl.sh b/testssl.sh index 73836a5..38eef5f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -6643,6 +6643,13 @@ openssl_age() { outln } +bsd-bash() { + if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(ls /dev/fd)") -le 3 ]]; then + echo "You need to mount fdescfs on FreeBSD: mount -t fdescfs fdesc /dev/fd" + exit 1 + fi +} + help() { cat << EOF @@ -8091,6 +8098,7 @@ maketempf mybanner check_proxy openssl_age +bsd-bash # TODO: it is ugly to have those two vars here --> main() ret=0