diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 17:08:58 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-07-04 17:08:58 +1000 |
commit | 8c7a14ea2897c384d4c2ebbb0d96eb8f84544d6a (patch) | |
tree | 639e9aefb83af3fbf96c372838846a17aa7ef762 /regress/key-options.sh | |
parent | f7fa706e70cc3d005acca995d022d65227185dcd (diff) |
- djm@cvs.openbsd.org 2008/06/30 08:07:34
[key-options.sh]
shell portability: use "=" instead of "==" in test(1) expressions,
double-quote string with backslash escaped /
Diffstat (limited to 'regress/key-options.sh')
-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 | ||