[openssh-commits] [openssh] branch master updated: upstream: just skip the test if $PATH or $HOME has whitespace in it

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Oct 22 10:31:34 AEDT 2025


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 52712d5f1 upstream: just skip the test if $PATH or $HOME has whitespace in it
52712d5f1 is described below

commit 52712d5f11172ca98ffb0b2ac93007f74cb67134
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Oct 21 23:30:01 2025 +0000

    upstream: just skip the test if $PATH or $HOME has whitespace in it
    
    OpenBSD-Regress-ID: ccf75a29d1a300a35f63be0e4f11ad5276756275
---
 regress/ssh-tty.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/regress/ssh-tty.sh b/regress/ssh-tty.sh
index ffdcde091..9d3c68b72 100644
--- a/regress/ssh-tty.sh
+++ b/regress/ssh-tty.sh
@@ -10,10 +10,14 @@ FAKEHOME="$OBJ/.fakehome"
 rm -rf "$FAKEHOME"
 mkdir -m 0700 -p "$FAKEHOME"
 
+case "${PATH}${HOME}" in
+*\ *|*\t*) skip "\$PATH or \$HOME has whitespace, not supported in this test";;
+esac
+
 # tmux stuff
 TMUX=${TMUX:-tmux}
 type $TMUX >/dev/null || skip "tmux not found"
-CLEANENV="env -i HOME='$HOME' LOGNAME='$USER' USER='$USER' PATH='$PATH' SHELL='$SHELL'"
+CLEANENV="env -i HOME=$HOME LOGNAME=$USER USER=$USER PATH=$PATH SHELL=$SHELL"
 TMUX_TEST="$CLEANENV $TMUX -f/dev/null -Lopenssh-regress-ssh-tty"
 sess="regress-ssh-tty$$"
 
@@ -59,6 +63,7 @@ wait_for_regex() {
 	string="$1"
 	errors_are_fatal="$2"
 	for x in 1 2 3 4 5 6 7 8 9 10 ; do
+set -x
 		$TMUX_TEST capture-pane -pt $sess | grep "$string" >/dev/null
 		[ $? -eq 0 ] && return
 		sleep 1

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list