summaryrefslogtreecommitdiff
path: root/regress/hostkey-agent.sh
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-01-27 12:01:36 +0000
committerDamien Miller <djm@mindrot.org>2015-01-27 23:03:15 +1100
commite56aa87502f22c5844918c10190e8b4f785f067b (patch)
treee541b223447a68e0132079ee39fe243877ec11fc /regress/hostkey-agent.sh
parent9f7637f56eddfaf62ce3c0af89c25480f2cf1068 (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.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/hostkey-agent.sh b/regress/hostkey-agent.sh
index fddb0415..c007d7a5 100644
--- a/regress/hostkey-agent.sh
+++ b/regress/hostkey-agent.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: hostkey-agent.sh,v 1.3 2015/01/20 08:02:33 djm Exp $
+# $OpenBSD: hostkey-agent.sh,v 1.4 2015/01/27 12:01:36 djm Exp $
# Placed in the Public Domain.
tid="hostkey agent"
@@ -17,7 +17,7 @@ trace "load hostkeys"
for k in `${SSH} -Q key-plain` ; do
${SSHKEYGEN} -qt $k -f $OBJ/agent-key.$k -N '' || fatal "ssh-keygen $k"
(
- echo -n 'localhost-with-alias,127.0.0.1,::1 '
+ printf 'localhost-with-alias,127.0.0.1,::1 '
cat $OBJ/agent-key.$k.pub
) >> $OBJ/known_hosts.orig
${SSHADD} $OBJ/agent-key.$k >/dev/null 2>&1 || \