python - lo: Don't rely on os.getlogin for getting a good default

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - lo: Don't rely on os.getlogin for getting a good default
Date: 2006-05-12 22:12:30
Message-ID: 20060512221230.0D04486C565@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Don't rely on os.getlogin for getting a good default username.

The 'getpass.getuser' function seems to be the sanctioned facility in which to
resolve the current username.

Per pg_slythe issue reported by Adrian Klaver.

Modified Files:
--------------
lo/postgresql/utility/client:
option.py (r1.2 -> r1.3)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/lo/postgresql/utility/client/option.py.diff?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-05-12 22:44:36 pgsql: Fix the sense of the test on DH_check()'s return value.
Previous Message Tom Lane 2006-05-12 16:50:52 pgsql: Upon closer inspection, the sparc code in s_lock.c is dead code,