pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vik Fearing <vik@2ndquadrant.fr>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: DOS-style line endings in .pgpass
Date: Tue, 15 Nov 2016 11:02:21 -0500
Message-ID: <25694.1479225741@sss.pgh.pa.us> (raw)
In-Reply-To: <d10c100d-7f59-0c90-6a1d-c0e59fe71d21@2ndquadrant.fr>
References: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com>
	<17d357ef-1a01-2493-a8b0-733010bf4bf0@2ndquadrant.fr>
	<30513.1479154249@sss.pgh.pa.us>
	<d10c100d-7f59-0c90-6a1d-c0e59fe71d21@2ndquadrant.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)

Message-ID: <25694.1479225741@sss.pgh.pa.us>
Permalink:  ../25694.1479225741@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25694.1479225741@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vik@2ndquadrant.fr, josh@agliodbs.com
  Subject: Re: DOS-style line endings in .pgpass
  In-Reply-To: <25694.1479225741@sss.pgh.pa.us>
  References: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> <17d357ef-1a01-2493-a8b0-733010bf4bf0@2ndquadrant.fr> <30513.1479154249@sss.pgh.pa.us> <d10c100d-7f59-0c90-6a1d-c0e59fe71d21@2ndquadrant.fr> <25694.1479225741@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox