From: Damien Miller Date: Tue, 22 Dec 2020 07:31:50 +0000 (+1100) Subject: ensure $LOGNAME is set in tests X-Git-Tag: V_8_5_P1~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e9811e57b57ee66b0f70d99d7258da3153b0e8a;p=thirdparty%2Fopenssh-portable.git ensure $LOGNAME is set in tests --- 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