- (dtucker) [agent-ptrace.sh dynamic-forward.sh (all regress/)]

Put "which" inside quotes.
This commit is contained in:
Darren Tucker 2003-09-07 09:22:21 +10:00
parent 9f18be63ab
commit 57ac36ffb4
3 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
20030907
- (dtucker) [agent-ptrace.sh dynamic-forward.sh (all regress/)]
Put "which" inside quotes.
20030906 20030906
- (dtucker) [acconfig.h configure.ac uidswap.c] Prefer setuid/setgid on AIX. - (dtucker) [acconfig.h configure.ac uidswap.c] Prefer setuid/setgid on AIX.
@ -24,7 +28,7 @@
- [regress/agent-ptrace.sh regress/agent-timeout.sh] - [regress/agent-ptrace.sh regress/agent-timeout.sh]
"grep -q" -> "grep >/dev/null" "grep -q" -> "grep >/dev/null"
- [regress/agent.sh regress/proto-version.sh regress/ssh-com.sh - [regress/agent.sh regress/proto-version.sh regress/ssh-com.sh
regress/test-exec.sh] Handle different was of echoing without newlines. regress/test-exec.sh] Handle different ways of echoing without newlines.
- [regress/dynamic-forward.sh] Some "which" programs output on stderr. - [regress/dynamic-forward.sh] Some "which" programs output on stderr.
- [regress/sftp-cmds.sh] Use portable "test" option. - [regress/sftp-cmds.sh] Use portable "test" option.
- [regress/test-exec.sh] Use sudo, search for "whoami" equivalent, always - [regress/test-exec.sh] Use sudo, search for "whoami" equivalent, always
@ -1024,4 +1028,4 @@
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au Report from murple@murple.net, diagnosis from dtucker@zip.com.au
$Id: ChangeLog,v 1.2962 2003/09/06 06:44:39 dtucker Exp $ $Id: ChangeLog,v 1.2963 2003/09/06 23:22:21 dtucker Exp $

View File

@ -3,7 +3,7 @@
tid="disallow agent ptrace attach" tid="disallow agent ptrace attach"
if [ -x `which uname 2>&1` ]; then if [ -x "`which uname 2>&1`" ]; then
case `uname` in case `uname` in
Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*) Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*)
echo "skipped (not supported on this platform)" echo "skipped (not supported on this platform)"
@ -12,7 +12,7 @@ if [ -x `which uname 2>&1` ]; then
esac esac
fi fi
if [ ! -x `which gdb 2>&1` ]; then if [ ! -x "`which gdb 2>&1`" ]; then
echo "skipped (gdb not found)" echo "skipped (gdb not found)"
exit 0 exit 0
fi fi

View File

@ -6,9 +6,9 @@ tid="dynamic forwarding"
PORT=4242 PORT=4242
FWDPORT=4243 FWDPORT=4243
if [ -x `which nc 2>&1` ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then if [ -x "`which nc 2>&1`" ] && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
proxycmd="nc -x 127.0.0.1:$FWDPORT -X" proxycmd="nc -x 127.0.0.1:$FWDPORT -X"
elif [ -x `which connect 2>&1` ]; then elif [ -x "`which connect 2>&1`" ]; then
proxycmd="connect -S 127.0.0.1:$FWDPORT -" proxycmd="connect -S 127.0.0.1:$FWDPORT -"
else else
echo "skipped (no suitable ProxyCommand found)" echo "skipped (no suitable ProxyCommand found)"