From 571d4f03087af4e40e475992395012ae8d86b7bc Mon Sep 17 00:00:00 2001 From: Mehtab Zafar Date: Thu, 20 Jun 2019 12:58:18 +0530 Subject: [PATCH] Use command instead of which for checking authbind (#1145) --- bin/cowrie | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cowrie b/bin/cowrie index 47ff2238..a877f57d 100755 --- a/bin/cowrie +++ b/bin/cowrie @@ -102,7 +102,7 @@ cowrie_start() { # Automatically check if the authbind is enabled or not authfile="/etc/authbind/byport/22" - if [ -z ${AUTHBIND_ENABLED} ] && [ -x "$authfile" ] && which authbind>/dev/null; then + if [ -z ${AUTHBIND_ENABLED} ] && [ -x "$authfile" ] && command -v authbind >/dev/null; then AUTHBIND_ENABLED=yes else AUTHBIND_ENABLED=no