[openssh-commits] [openssh] 01/01: ensure $LOGNAME is set in tests

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Dec 22 18:34:36 AEDT 2020


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

djm pushed a commit to branch master
in repository openssh.

commit 3e9811e57b57ee66b0f70d99d7258da3153b0e8a
Author: Damien Miller <djm at mindrot.org>
Date:   Tue Dec 22 18:31:50 2020 +1100

    ensure $LOGNAME is set in tests
---
 regress/test-exec.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 5dc975d0..ee47f572 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -42,6 +42,10 @@ elif logname >/dev/null 2>&1; then
 else
 	USER=`id -un`
 fi
+if test -z "$LOGNAME"; then
+	LOGNAME="${USER}"
+	export LOGNAME
+fi
 
 OBJ=$1
 if [ "x$OBJ" = "x" ]; then

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


More information about the openssh-commits mailing list