[openssh-commits] [openssh] 03/03: upstream: Log command invocation while debugging.
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jan 5 11:52:14 AEDT 2022
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 8f3b18030579f395eca2181da31a5f945af12a59
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Tue Jan 4 08:38:53 2022 +0000
upstream: Log command invocation while debugging.
This will aid in manually reproducing failing commands.
OpenBSD-Regress-ID: b4aba8d5ac5675ceebeeeefa3261ce344e67333a
---
regress/sshd-log-wrapper.sh | 3 ++-
regress/test-exec.sh | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/regress/sshd-log-wrapper.sh b/regress/sshd-log-wrapper.sh
index 29dc44aa..4b3c9113 100644
--- a/regress/sshd-log-wrapper.sh
+++ b/regress/sshd-log-wrapper.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: sshd-log-wrapper.sh,v 1.4 2016/11/25 02:56:49 dtucker Exp $
+# $OpenBSD: sshd-log-wrapper.sh,v 1.5 2022/01/04 08:38:53 dtucker Exp $
# Placed in the Public Domain.
#
# simple wrapper for sshd proxy mode to catch stderr output
@@ -8,4 +8,5 @@
log=$1
shift
+echo "Executing: $@" >>$log
exec "$@" -E$log
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 415422ef..71204a5d 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.87 2021/09/01 00:50:27 dtucker Exp $
+# $OpenBSD: test-exec.sh,v 1.88 2022/01/04 08:38:53 dtucker Exp $
# Placed in the Public Domain.
#SUDO=sudo
@@ -262,6 +262,7 @@ fi
SSHLOGWRAP=$OBJ/ssh-log-wrapper.sh
cat >$SSHLOGWRAP <<EOD
#!/bin/sh
+echo "Executing: ${SSH} \$@" >>${TEST_SSH_LOGFILE}
for i in "\$@";do shift;case "\$i" in -q):;; *) set -- "\$@" "\$i";;esac;done
exec ${SSH} -E${TEST_SSH_LOGFILE} "\$@"
EOD
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list