[regress/agent-ptrace.sh regress/dynamic-forward.sh
regress/sftp-cmds.sh regress/stderr-after-eof.sh regress/test-exec.sh]
no longer depends on which(1). patch by dtucker@
diff --git a/regress/stderr-after-eof.sh b/regress/stderr-after-eof.sh
index ae9cf8d..05a5ea5 100644
--- a/regress/stderr-after-eof.sh
+++ b/regress/stderr-after-eof.sh
@@ -7,13 +7,13 @@
DATA=${OBJ}/data
COPY=${OBJ}/copy
-if [ -x "`which md5sum 2>&1`" ]; then
+if have_prog md5sum; then
CHECKSUM=md5sum
-elif [ -x "`which openssl 2>&1`" ]; then
+elif have_prog openssl; then
CHECKSUM="openssl md5"
-elif [ -x "`which cksum 2>&1`" ]; then
+elif have_prog cksum; then
CHECKSUM=cksum
-elif [ -x "`which sum 2>&1`" ]; then
+elif have_prog sum; then
CHECKSUM=sum
else
fatal "No checksum program available, aborting $tid test"