diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-12-07 22:17:49 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-12-07 22:17:49 +0000 |
commit | 6dbe717eaaeebe83d218a2c997efe8bb81c875d3 (patch) | |
tree | 5a8723dd26cd73f59f7a33295a34562ddd739ebc | |
parent | 4e2872808079e673c9af434dede9223793a6bd63 (diff) |
match string "passwordauthentication" only at start of line, not anywhere
in sshd -T output
-rw-r--r-- | regress/usr.bin/ssh/addrmatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/addrmatch.sh b/regress/usr.bin/ssh/addrmatch.sh index a05df1539a4..796cb5262bc 100644 --- a/regress/usr.bin/ssh/addrmatch.sh +++ b/regress/usr.bin/ssh/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 |