From 341776a0803e29ce1f7dd4c4b52c6f76a3083ccb Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 2 Oct 2026 11:55:56 -0700 Subject: [PATCH] scripts: pass absolute key paths in interop test The example client chdirs up to the tree root before it opens the -i and -j files, so the relative srcdir key path from an out-of-tree build no longer resolved and make distcheck failed openssh-interop.test. Resolve the keys directory to an absolute path up front. --- scripts/openssh-interop.test | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/openssh-interop.test b/scripts/openssh-interop.test index 2eb37dc32..19ac825e7 100755 --- a/scripts/openssh-interop.test +++ b/scripts/openssh-interop.test @@ -33,8 +33,9 @@ run_limit=60 killer_pid=-1 # The test keys are not copied into the build directory, so reach them # through srcdir the way scripts/fwd.test does, or an out-of-tree build -# and make distcheck cannot find them. -keys_dir="${srcdir:-.}/keys" +# and make distcheck cannot find them. Made absolute because the example +# client chdirs up to the tree root before it opens the -i and -j files. +keys_dir=`cd "${srcdir:-.}/keys" && pwd` || exit 1 do_cleanup() { if [ $killer_pid != $no_pid ]