Re: new libpq SSL connection option

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: new libpq SSL connection option
Дата
Msg-id 49595C5D.5050006@hagander.net
обсуждение исходный текст
Ответ на Re: new libpq SSL connection option  ("Alex Hunsaker" <badalex@gmail.com>)
Ответы Re: new libpq SSL connection option  (Andrew Chernow <ac@esilo.com>)
Список pgsql-hackers
Alex Hunsaker wrote:
> On Sat, Dec 27, 2008 at 11:50, Andrew Chernow <ac@esilo.com> wrote:
>> Why does pqGetHomeDirectory have to succeed to use conn->sslrootcert. Maybe
>> this should be an OR of the two since sslrootcert is not dependent on
>> homedir?
>>
>> around line 970 src/interfaces/libpq/fe-secure.c
>>
>> if (conn->sslrootcert || pqGetHomeDirectory(homedir, sizeof(homedir)))
> 
> Certainly, did we miss anywhere else?

I agree it looks strange.

That said, have you actually seen a case where pqGetHomeDirectory()
fails? Or did you just notice the code?

//Magnus



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Windowing Function Patch Review -> Standard Conformance
Следующее
От: "David Rowley"
Дата:
Сообщение: Re: Windowing Function Patch Review -> Standard Conformance