[FIX] picking of username for session data directory in case of setuid
authorXavier Morel <xmo@openerp.com>
Mon, 10 Jun 2013 09:21:07 +0000 (11:21 +0200)
committerXavier Morel <xmo@openerp.com>
Mon, 10 Jun 2013 09:21:07 +0000 (11:21 +0200)
Try using geteuid() before getpass.getuser() so a system where
environment user and effective user (e.g. sudo, start-stop-daemon)
creates session-storage directory with a username matching the access
rights.

lp bug: https://launchpad.net/bugs/1172306 fixed

bzr revid: xmo@openerp.com-20130610092107-o4ym83e4ycz450un


Trivial merge