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

Поиск
Список
Период
Сортировка
От jwp@pgfoundry.org (James William Pye)
Тема python - lo: Don't rely on os.getlogin for getting a good default
Дата
Msg-id 20060512221230.0D04486C565@pgfoundry.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Upon closer inspection, the sparc code in s_lock.c is dead code,
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix the sense of the test on DH_check()'s return value.