From 11a5e5179077f73c2d45bcdf3f60153ae3f17815 Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Fri, 6 Dec 2024 07:05:54 +0000 Subject: [PATCH] upstream: Expand $SSH to absolute path if it's not already. Prevents problem later in increase_datafile_size if ssh is not in the path. Patch from quaresmajose via GHPR#510. OpenBSD-Regress-ID: 2670a66af8b827410ca7139f0a89f4501cece77b --- regress/test-exec.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 307f002e60a1..62c00fd8cace 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,4 +1,4 @@ -# $OpenBSD: test-exec.sh,v 1.121 2024/10/22 07:13:28 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.122 2024/12/06 07:05:54 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo @@ -184,6 +184,11 @@ case "$SSHD" in *) SSHD=`which $SSHD` ;; esac +case "$SSH" in +/*) ;; +*) SSH=`which $SSH` ;; +esac + case "$SSHAGENT" in /*) ;; *) SSHAGENT=`which $SSHAGENT` ;;