summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--regress/agent-ptrace.sh4
-rw-r--r--regress/dynamic-forward.sh4
-rw-r--r--regress/sftp-cmds.sh2
-rw-r--r--regress/stderr-after-eof.sh8
-rw-r--r--regress/test-exec.sh17
6 files changed, 29 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 39303b67f..6bc8182cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
5 - (tim) [configure.ac] Move libgen tests to before libwrap to unbreak 5 - (tim) [configure.ac] Move libgen tests to before libwrap to unbreak
6 UnixWare 2.03 using --with-tcp-wrappers. 6 UnixWare 2.03 using --with-tcp-wrappers.
7 - (tim) [configure.ac] Prefer setuid/setgid on UnixWare and Open Server. 7 - (tim) [configure.ac] Prefer setuid/setgid on UnixWare and Open Server.
8 - (tim) [regress/agent-ptrace.sh regress/dynamic-forward.sh
9 regress/sftp-cmds.sh regress/stderr-after-eof.sh regress/test-exec.sh]
10 no longer depends on which(1). patch by dtucker@
8 11
920030910 1220030910
10 - (dtucker) [configure.ac] Bug #636: Add support for Cray's new X1 machine. 13 - (dtucker) [configure.ac] Bug #636: Add support for Cray's new X1 machine.
@@ -1067,4 +1070,4 @@
1067 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1070 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1068 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1071 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1069 1072
1070$Id: ChangeLog,v 1.2981 2003/09/12 05:24:36 tim Exp $ 1073$Id: ChangeLog,v 1.2982 2003/09/12 05:32:17 tim Exp $
diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh
index 4124f5844..b9d86a29d 100644
--- a/regress/agent-ptrace.sh
+++ b/regress/agent-ptrace.sh
@@ -3,7 +3,7 @@
3 3
4tid="disallow agent ptrace attach" 4tid="disallow agent ptrace attach"
5 5
6if [ -x "`which uname 2>&1`" ]; then 6if have_prog uname ; then
7 case `uname` in 7 case `uname` in
8 Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*) 8 Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*)
9 echo "skipped (not supported on this platform)" 9 echo "skipped (not supported on this platform)"
@@ -12,7 +12,7 @@ if [ -x "`which uname 2>&1`" ]; then
12 esac 12 esac
13fi 13fi
14 14
15if [ ! -x "`which gdb 2>&1`" ]; then 15if ! have_prog gdb ; then
16 echo "skipped (gdb not found)" 16 echo "skipped (gdb not found)"
17 exit 0 17 exit 0
18fi 18fi
diff --git a/regress/dynamic-forward.sh b/regress/dynamic-forward.sh
index 0f175b2d9..2b0b825d0 100644
--- a/regress/dynamic-forward.sh
+++ b/regress/dynamic-forward.sh
@@ -7,9 +7,9 @@ PORT=4242
7FWDPORT=4243 7FWDPORT=4243
8DATA=/bin/ls${EXEEXT} 8DATA=/bin/ls${EXEEXT}
9 9
10if [ -x "`which nc 2>&1`" ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then 10if have_prog nc && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
11 proxycmd="nc -x 127.0.0.1:$FWDPORT -X" 11 proxycmd="nc -x 127.0.0.1:$FWDPORT -X"
12elif [ -x "`which connect 2>&1`" ]; then 12elif have_prog connect; then
13 proxycmd="connect -S 127.0.0.1:$FWDPORT -" 13 proxycmd="connect -S 127.0.0.1:$FWDPORT -"
14else 14else
15 echo "skipped (no suitable ProxyCommand found)" 15 echo "skipped (no suitable ProxyCommand found)"
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh
index 1237720f9..1256aeb2d 100644
--- a/regress/sftp-cmds.sh
+++ b/regress/sftp-cmds.sh
@@ -17,7 +17,7 @@ do
17 fi 17 fi
18done 18done
19 19
20if [ -x "`which uname 2>&1`" ] 20if have_prog uname
21then 21then
22 case `uname` in 22 case `uname` in
23 CYGWIN*) 23 CYGWIN*)
diff --git a/regress/stderr-after-eof.sh b/regress/stderr-after-eof.sh
index ae9cf8d98..05a5ea56d 100644
--- a/regress/stderr-after-eof.sh
+++ b/regress/stderr-after-eof.sh
@@ -7,13 +7,13 @@ DATA=/etc/motd
7DATA=${OBJ}/data 7DATA=${OBJ}/data
8COPY=${OBJ}/copy 8COPY=${OBJ}/copy
9 9
10if [ -x "`which md5sum 2>&1`" ]; then 10if have_prog md5sum; then
11 CHECKSUM=md5sum 11 CHECKSUM=md5sum
12elif [ -x "`which openssl 2>&1`" ]; then 12elif have_prog openssl; then
13 CHECKSUM="openssl md5" 13 CHECKSUM="openssl md5"
14elif [ -x "`which cksum 2>&1`" ]; then 14elif have_prog cksum; then
15 CHECKSUM=cksum 15 CHECKSUM=cksum
16elif [ -x "`which sum 2>&1`" ]; then 16elif have_prog sum; then
17 CHECKSUM=sum 17 CHECKSUM=sum
18else 18else
19 fatal "No checksum program available, aborting $tid test" 19 fatal "No checksum program available, aborting $tid test"
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index b5ef3bc7c..cc7ea67fe 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -6,7 +6,7 @@ PORT=4242
6 6
7if [ -x /usr/ucb/whoami ]; then 7if [ -x /usr/ucb/whoami ]; then
8 USER=`/usr/ucb/whoami` 8 USER=`/usr/ucb/whoami`
9elif [ -x "`which whoami 2>&1`" ]; then 9elif whoami >/dev/null 2>&1; then
10 USER=`whoami` 10 USER=`whoami`
11else 11else
12 USER=`id -un` 12 USER=`id -un`
@@ -89,6 +89,21 @@ echon()
89 fi 89 fi
90} 90}
91 91
92have_prog()
93{
94 saved_IFS="$IFS"
95 IFS=":"
96 for i in $PATH
97 do
98 if [ -x $i/$1 ]; then
99 IFS="$saved_IFS"
100 return 0
101 fi
102 done
103 IFS="$saved_IFS"
104 return 1
105}
106
92cleanup () 107cleanup ()
93{ 108{
94 if [ -f $PIDFILE ]; then 109 if [ -f $PIDFILE ]; then