From 3e9811e57b57ee66b0f70d99d7258da3153b0e8a Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 22 Dec 2020 18:31:50 +1100 Subject: [PATCH] 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 5dc975d07..ee47f572c 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