summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-10-07 10:30:06 +1100
committerDarren Tucker <dtucker@zip.com.au>2009-10-07 10:30:06 +1100
commit7023d161d86211fa6a4c7dfacdad37a53f468512 (patch)
treea1fe57e9a3785627fe799141e97d1fe129d424e6 /regress
parent695ed397a5216189629aa717d03d72ad21cdee1a (diff)
downloadopenssh-git-7023d161d86211fa6a4c7dfacdad37a53f468512.tar.gz
- djm@cvs.openbsd.org 2008/12/07 22:17:48
[regress/addrmatch.sh] match string "passwordauthentication" only at start of line, not anywhere in sshd -T output
Diffstat (limited to 'regress')
-rw-r--r--regress/addrmatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/addrmatch.sh b/regress/addrmatch.sh
index a258f7bb..cbff82e5 100644
--- a/regress/addrmatch.sh
+++ b/regress/addrmatch.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: addrmatch.sh,v 1.1 2008/06/10 05:23:32 dtucker Exp $
+# $OpenBSD: addrmatch.sh,v 1.2 2008/12/07 22:17:48 djm Exp $
# Placed in the Public Domain.
tid="address match"
@@ -12,7 +12,7 @@ run_trial()
verbose "test $descr for $user $addr $host"
result=`${SSHD} -f $OBJ/sshd_proxy -T \
-C user=${user},addr=${addr},host=${host} | \
- awk '/passwordauthentication/ {print $2}'`
+ awk '/^passwordauthentication/ {print $2}'`
if [ "$result" != "$expected" ]; then
fail "failed for $user $addr $host: expected $expected, got $result"
fi