From: dtucker@openbsd.org Date: Fri, 6 Dec 2024 07:05:54 +0000 (+0000) Subject: upstream: Expand $SSH to absolute path if it's not already. X-Git-Tag: V_10_0_P1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11a5e5179077f73c2d45bcdf3f60153ae3f17815;p=thirdparty%2Fopenssh-portable.git 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 --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index 307f002e6..62c00fd8c 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` ;;