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

From jwp@pgfoundry.org (James William Pye)
Subject python - lo: Don't rely on os.getlogin for getting a good default
Date
Msg-id 20060512221230.0D04486C565@pgfoundry.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Upon closer inspection, the sparc code in s_lock.c is dead code,
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix the sense of the test on DH_check()'s return value.