Use the method used by build_env.sh to discover the user name.
commita3727668f0264d381af838a312f5852f6ed09351
authorMatt Kraai <mkraai@beckman.com>
Thu, 17 Sep 2009 14:07:42 +0000 (17 07:07 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:12 +0000 (26 11:39 +0100)
tree1eaf6baeb91003984c3fca1b2fea119978e1d0b3
parent5907988b50a7870b7c03a49c340ab1a8cbd9ed53
Use the method used by build_env.sh to discover the user name.

so try USERNAME, then LOGNAME, then whoami, then id -un to find out who we
are.
(cherry picked from commit 2f9576801d1e14b5489cef93c677114d18ef3d83)
source3/script/tests/selftest.sh