use getpass.getuser, not LOGNAME

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3671 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index 5be18e7..5c754fc 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -1,6 +1,7 @@
 # Copyright 2007 Google Inc. Released under the GPL v2
 
 import re, os, sys, traceback, subprocess, tempfile, time, pickle, glob, logging
+import getpass
 from autotest_lib.server import installable_object, utils
 from autotest_lib.client.common_lib import log, error, autotemp
 from autotest_lib.client.common_lib import global_config, packages
@@ -405,7 +406,7 @@
             args.append('-l')
         if self.host.hostname:
             args.append('--hostname=%s' % self.host.hostname)
-        args.append('--user=%s' % os.environ['LOGNAME'])
+        args.append('--user=%s' % getpass.getuser())
 
         args.append(self.remote_control_file)
         return args