summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--regress/test-exec.sh15
2 files changed, 14 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index eceac5e21..f8c93d16e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,8 @@
21 regress/test-exec.sh] Handle different was of echoing without newlines. 21 regress/test-exec.sh] Handle different was of echoing without newlines.
22 - [regress/dynamic-forward.sh] Some "which" programs output on stderr. 22 - [regress/dynamic-forward.sh] Some "which" programs output on stderr.
23 - [regress/sftp-cmds.sh] Use portable "test" option. 23 - [regress/sftp-cmds.sh] Use portable "test" option.
24 - [regress/test-exec.sh] Use sudo, search for "whoami" equivalent, always
25 use Strictmodes no, wait longer for sshd startup.
24 26
2520030903 2720030903
26 - (djm) OpenBSD CVS Sync 28 - (djm) OpenBSD CVS Sync
@@ -1011,4 +1013,4 @@
1011 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1013 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1012 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1014 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1013 1015
1014$Id: ChangeLog,v 1.2955 2003/09/04 05:26:57 dtucker Exp $ 1016$Id: ChangeLog,v 1.2956 2003/09/04 05:35:48 dtucker Exp $
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 35f555b27..b5ef3bc7c 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -2,10 +2,16 @@
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4PORT=4242 4PORT=4242
5USER=`id -un`
6SUDO=
7#SUDO=sudo 5#SUDO=sudo
8 6
7if [ -x /usr/ucb/whoami ]; then
8 USER=`/usr/ucb/whoami`
9elif [ -x "`which whoami 2>&1`" ]; then
10 USER=`whoami`
11else
12 USER=`id -un`
13fi
14
9OBJ=$1 15OBJ=$1
10if [ "x$OBJ" = "x" ]; then 16if [ "x$OBJ" = "x" ]; then
11 echo '$OBJ not defined' 17 echo '$OBJ not defined'
@@ -141,6 +147,7 @@ cat << EOF > $OBJ/sshd_config
141 PidFile $PIDFILE 147 PidFile $PIDFILE
142 AuthorizedKeysFile $OBJ/authorized_keys_%u 148 AuthorizedKeysFile $OBJ/authorized_keys_%u
143 LogLevel QUIET 149 LogLevel QUIET
150 StrictModes no
144EOF 151EOF
145 152
146# server config for proxy connects 153# server config for proxy connects
@@ -200,7 +207,7 @@ chmod 644 $OBJ/authorized_keys_$USER
200# create a proxy version of the client config 207# create a proxy version of the client config
201( 208(
202 cat $OBJ/ssh_config 209 cat $OBJ/ssh_config
203 echo proxycommand ${SSHD} -i -f $OBJ/sshd_proxy 210 echo proxycommand ${SUDO} ${SSHD} -i -f $OBJ/sshd_proxy
204) > $OBJ/ssh_proxy 211) > $OBJ/ssh_proxy
205 212
206# check proxy config 213# check proxy config
@@ -214,7 +221,7 @@ start_sshd ()
214 221
215 trace "wait for sshd" 222 trace "wait for sshd"
216 i=0; 223 i=0;
217 while [ ! -f $PIDFILE -a $i -lt 5 ]; do 224 while [ ! -f $PIDFILE -a $i -lt 10 ]; do
218 i=`expr $i + 1` 225 i=`expr $i + 1`
219 sleep $i 226 sleep $i
220 done 227 done