r8539: $LOGNAME is a common varient of $USER on some systems
authorAndrew Tridgell <tridge@samba.org>
Mon, 18 Jul 2005 08:30:32 +0000 (08:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:36 +0000 (13:29 -0500)
source/script/tests/selftest.sh

index b947256738089605836181e79c770ce09974630b..6579623e2c3ef5258263e920a11cf6bd2fefd3c4 100755 (executable)
@@ -5,6 +5,9 @@ REALM=$DOMAIN
 PASSWORD=penguin
 SRCDIR=`pwd`
 ROOT=$USER
+if test -z "$ROOT"; then
+    ROOT=$LOGNAME
+fi
 if test -z "$ROOT"; then
     ROOT=`whoami`
 fi