| От | Neil Conway |
|---|---|
| Тема | fix regression in .pgpass handling |
| Дата | |
| Msg-id | 1043783068.9543.64.camel@tokyo обсуждение исходный текст |
| Ответы |
Re: fix regression in .pgpass handling
Re: fix regression in .pgpass handling |
| Список | pgsql-patches |
The handling of .pgpass files in libpq was recently "fixed" to work with
all connection methods (a patch applied to both REL7_3_STABLE and HEAD),
but that change broke .pgpass usage in PQsetdbLogin().
This patch fixes the regression, so .pgpass should now be able to work
with all of the appropriate database connection methods in libpq.
I also fixed a bug in the parsing of .pgpass: if the file was not
terminated by a newline, the password would be slightly mangled. I
didn't bother to account for a CRLF line ending -- is getenv("HOME")
defined on Win32?
I also refactored a bit of code in PasswordFromFile(), and added some
missing environmental variables to the libpq docs.
This patch is against CVS HEAD, but it should apply to REL7_3_STABLE
with just a few offsets. Please apply to both.
Cheers,
Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера