summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2008-12-07 22:17:48 +0000
committerdjm <djm@openbsd.org>2008-12-07 22:17:48 +0000
commitcb275bbd680727bf45065ad57010a40bd536434b (patch)
tree9d2752d43c4bb030d0ad7b8a24421eb14639d97d
parenttime_t is signed, so use INT_MAX rather than UINT_MAX when parsing a time_t (diff)
downloadwireguard-openbsd-cb275bbd680727bf45065ad57010a40bd536434b.tar.xz
wireguard-openbsd-cb275bbd680727bf45065ad57010a40bd536434b.zip
match string "passwordauthentication" only at start of line, not anywhere
in sshd -T output
-rw-r--r--regress/usr.bin/ssh/addrmatch.sh4
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