Re: DOS-style line endings in .pgpass

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DOS-style line endings in .pgpass
Дата
Msg-id 25694.1479225741@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DOS-style line endings in .pgpass  (Vik Fearing <vik@2ndquadrant.fr>)
Список pgsql-bugs
Vik Fearing <vik@2ndquadrant.fr> writes:
> On 11/14/2016 09:10 PM, Tom Lane wrote:
>> Our usual approach to \r characters is that they're whitespace.  I wonder
>> whether the most friendly solution here is to chomp all trailing
>> whitespace.  Anybody ever heard of using a trailing space or tab in a
>> password?

> Trailing, no; but I have a password with a space in the middle.

Hm, well, given that we found somebody with an embedded space so
easily, maybe trailing spaces are out there too.  Also it strikes me
that we don't strip whitespace from the other fields in .pgpass,
so maybe doing it just for the password isn't so smart.

Let's just chomp \n and then \r, and be done.

            regards, tom lane

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

Предыдущее
От: Mikael Wallén
Дата:
Сообщение: Re: BUG #14423: Fail to connect to DB
Следующее
От: sudalai
Дата:
Сообщение: Index file got removed