diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/key-options.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/key-options.sh b/regress/key-options.sh index b4dd47057..f98d78b30 100644 --- a/regress/key-options.sh +++ b/regress/key-options.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: key-options.sh,v 1.1 2008/06/10 23:13:43 dtucker Exp $ | 1 | # $OpenBSD: key-options.sh,v 1.2 2008/06/30 08:07:34 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="key options" | 4 | tid="key options" |
@@ -53,11 +53,11 @@ for p in 1 2; do | |||
53 | fail "key option proto $p failed without restriction" | 53 | fail "key option proto $p failed without restriction" |
54 | fi | 54 | fi |
55 | 55 | ||
56 | sed 's/.*/from="'$f'" &/' $origkeys >$authkeys | 56 | sed 's/.*/from="'"$f"'" &/' $origkeys >$authkeys |
57 | from=`head -1 $authkeys | cut -f1 -d ' '` | 57 | from=`head -1 $authkeys | cut -f1 -d ' '` |
58 | verbose "key option proto $p $from" | 58 | verbose "key option proto $p $from" |
59 | r=`${SSH} -$p -q -F $OBJ/ssh_proxy somehost 'echo true'` | 59 | r=`${SSH} -$p -q -F $OBJ/ssh_proxy somehost 'echo true'` |
60 | if [ "$r" == "true" ]; then | 60 | if [ "$r" = "true" ]; then |
61 | fail "key option proto $p $from not restricted" | 61 | fail "key option proto $p $from not restricted" |
62 | fi | 62 | fi |
63 | 63 | ||