diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-01-27 12:01:36 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-27 23:03:15 +1100 |
commit | e56aa87502f22c5844918c10190e8b4f785f067b (patch) | |
tree | e541b223447a68e0132079ee39fe243877ec11fc /regress/hostkey-agent.sh | |
parent | 9f7637f56eddfaf62ce3c0af89c25480f2cf1068 (diff) |
upstream commit
use printf instead of echo -n to reduce diff against
-portable
Diffstat (limited to 'regress/hostkey-agent.sh')
-rw-r--r-- | regress/hostkey-agent.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/hostkey-agent.sh b/regress/hostkey-agent.sh index fddb0415b..c007d7a5e 100644 --- a/regress/hostkey-agent.sh +++ b/regress/hostkey-agent.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: hostkey-agent.sh,v 1.3 2015/01/20 08:02:33 djm Exp $ | 1 | # $OpenBSD: hostkey-agent.sh,v 1.4 2015/01/27 12:01:36 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="hostkey agent" | 4 | tid="hostkey agent" |
@@ -17,7 +17,7 @@ trace "load hostkeys" | |||
17 | for k in `${SSH} -Q key-plain` ; do | 17 | for k in `${SSH} -Q key-plain` ; do |
18 | ${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k" | 18 | ${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k" |
19 | ( | 19 | ( |
20 | echo -n 'localhost-with-alias,127.0.0.1,::1 ' | 20 | printf 'localhost-with-alias,127.0.0.1,::1 ' |
21 | cat $OBJ/agent-key.$k.pub | 21 | cat $OBJ/agent-key.$k.pub |
22 | ) >> $OBJ/known_hosts.orig | 22 | ) >> $OBJ/known_hosts.orig |
23 | ${SSHADD} $OBJ/agent-key.$k >/dev/null 2>&1 || \ | 23 | ${SSHADD} $OBJ/agent-key.$k >/dev/null 2>&1 || \ |