[openssh-commits] [openssh] 01/08: upstream: Use $OBJ to find key files. Fixes test when run on an obj
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jul 15 15:09:02 AEST 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 03da4c2b70468f04ed1c08518ea0a70e67232739
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Wed Jul 15 04:55:47 2020 +0000
upstream: Use $OBJ to find key files. Fixes test when run on an obj
directory (on OpenBSD) or out of tree (in Portable).
OpenBSD-Regress-ID: 938fa8ac86adaa527d64a305bd2135cfbb1c0a17
---
regress/agent.sh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/regress/agent.sh b/regress/agent.sh
index 66973de2..a3ad1385 100644
--- a/regress/agent.sh
+++ b/regress/agent.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: agent.sh,v 1.18 2020/06/26 05:12:21 djm Exp $
+# $OpenBSD: agent.sh,v 1.19 2020/07/15 04:55:47 dtucker Exp $
# Placed in the Public Domain.
tid="simple agent test"
@@ -197,7 +197,7 @@ check_key_present() {
# delete the ed25519 key
trace "delete single key by file"
-${SSHADD} -qdk ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
+${SSHADD} -qdk $OBJ/ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
check_key_absent ssh-ed25519
check_key_present ssh-ed25519-cert-v01 at openssh.com
# Put key/cert back.
@@ -206,7 +206,7 @@ ${SSHADD} $OBJ/ssh-ed25519-agent-private >/dev/null 2>&1 || \
check_key_present ssh-ed25519
# Delete both key and certificate.
trace "delete key/cert by file"
-${SSHADD} -qd ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
+${SSHADD} -qd $OBJ/ssh-ed25519-agent || fail "ssh-add -d ed25519 failed"
check_key_absent ssh-ed25519
check_key_absent ssh-ed25519-cert-v01 at openssh.com
# Put key/cert back.
@@ -214,11 +214,11 @@ ${SSHADD} $OBJ/ssh-ed25519-agent-private >/dev/null 2>&1 || \
fail "ssh-add failed exit code $?"
check_key_present ssh-ed25519
# Delete certificate via stdin
-${SSHADD} -qd - < ssh-ed25519-agent-cert.pub || fail "ssh-add -d - failed"
+${SSHADD} -qd - < $OBJ/ssh-ed25519-agent-cert.pub || fail "ssh-add -d - failed"
check_key_present ssh-ed25519
check_key_absent ssh-ed25519-cert-v01 at openssh.com
# Delete key via stdin
-${SSHADD} -qd - < ssh-ed25519-agent.pub || fail "ssh-add -d - failed"
+${SSHADD} -qd - < $OBJ/ssh-ed25519-agent.pub || fail "ssh-add -d - failed"
check_key_absent ssh-ed25519
check_key_absent ssh-ed25519-cert-v01 at openssh.com
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list