mirror of git://anongit.mindrot.org/openssh.git
ensure $LOGNAME is set in tests
This commit is contained in:
parent
3eb647cbb3
commit
3e9811e57b
|
@ -42,6 +42,10 @@ elif logname >/dev/null 2>&1; then
|
||||||
else
|
else
|
||||||
USER=`id -un`
|
USER=`id -un`
|
||||||
fi
|
fi
|
||||||
|
if test -z "$LOGNAME"; then
|
||||||
|
LOGNAME="${USER}"
|
||||||
|
export LOGNAME
|
||||||
|
fi
|
||||||
|
|
||||||
OBJ=$1
|
OBJ=$1
|
||||||
if [ "x$OBJ" = "x" ]; then
|
if [ "x$OBJ" = "x" ]; then
|
||||||
|
|
Loading…
Reference in New Issue