Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c6SEm-0000Sl-MM for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Nov 2016 01:08:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c6SEm-0006gW-1y for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Nov 2016 01:08:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c6SE7-0005xS-SB for pgsql-bugs@postgresql.org; Tue, 15 Nov 2016 01:07:56 +0000 Received: from fr1.2ndquadrant.fr ([94.23.17.124]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c6SE5-0004cu-3C for pgsql-bugs@postgresql.org; Tue, 15 Nov 2016 01:07:54 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by fr1.2ndquadrant.fr (Postfix) with ESMTP id C48F762A6A; Tue, 15 Nov 2016 02:07:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at fr1.2ndquadrant.fr Received: from fr1.2ndquadrant.fr ([127.0.0.1]) by localhost (fr1.2ndquadrant.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1VohXcUzbE3G; Tue, 15 Nov 2016 02:07:49 +0100 (CET) Received: from [192.168.0.3] (ath91-3-88-167-161-184.fbx.proxad.net [88.167.161.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: charles) by fr1.2ndquadrant.fr (Postfix) with ESMTPSA id 671EC60BE3; Tue, 15 Nov 2016 02:07:49 +0100 (CET) Subject: Re: DOS-style line endings in .pgpass To: Tom Lane References: <0de37763-5843-b2cc-855e-5d0e5df25807@agliodbs.com> <17d357ef-1a01-2493-a8b0-733010bf4bf0@2ndquadrant.fr> <30513.1479154249@sss.pgh.pa.us> Cc: Josh Berkus , pgsql-bugs From: Vik Fearing Message-ID: Date: Tue, 15 Nov 2016 02:07:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <30513.1479154249@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -4.7 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 11/14/2016 09:10 PM, Tom Lane wrote: > Vik Fearing writes: >> On 11/14/2016 08:31 PM, Josh Berkus wrote: >>> What appears to be happening here is that one of the characters of the >>> CRLF is being appended to the password, making it invalid. > >> Maybe something like the attached patch? > > 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. -- Vik Fearing +33 6 46 75 15 36 http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs