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
|
||||
USER=`id -un`
|
||||
fi
|
||||
if test -z "$LOGNAME"; then
|
||||
LOGNAME="${USER}"
|
||||
export LOGNAME
|
||||
fi
|
||||
|
||||
OBJ=$1
|
||||
if [ "x$OBJ" = "x" ]; then
|
||||
|
|
Loading…
Reference in New Issue