Try using "id -un" before "whoami" since the latter doesn't exist on
authorWayne Davison <wayned@samba.org>
Sun, 4 Jan 2004 07:07:08 +0000 (07:07 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 4 Jan 2004 07:07:08 +0000 (07:07 +0000)
SunOS systems (and I hope the former works -- we'll see).

runtests.sh

index bb0b34a..68d7313 100755 (executable)
@@ -142,7 +142,7 @@ echo "$0 running in `pwd`"
 echo "    rsync_bin=$rsync_bin"
 echo "    srcdir=$srcdir"
 
 echo "    rsync_bin=$rsync_bin"
 echo "    srcdir=$srcdir"
 
-testuser=`whoami || echo UNKNOWN`
+testuser=`id -un || whoami || echo UNKNOWN`
 
 echo "    testuser=$testuser"
 echo "    os=`uname -a`"
 
 echo "    testuser=$testuser"
 echo "    os=`uname -a`"