Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7611B1337BD0 for ; Fri, 4 Mar 2011 12:41:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 36836-02 for ; Fri, 4 Mar 2011 16:41:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 468EF133655C for ; Fri, 4 Mar 2011 12:41:41 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p24GfYQG029411; Fri, 4 Mar 2011 11:41:34 -0500 (EST) To: Christian Kastner cc: pgsql-bugs@postgresql.org Subject: Re: Possible regression: libpq + SSL aborts when user has no home directory In-reply-to: <4D705FC3.6050008@kvr.at> References: <4D6FF05E.1050201@kvr.at> <8295.1299189555@sss.pgh.pa.us> <10824.1299196694@sss.pgh.pa.us> <4D705FC3.6050008@kvr.at> Comments: In-reply-to Christian Kastner message dated "Fri, 04 Mar 2011 04:42:59 +0100" Date: Fri, 04 Mar 2011 11:41:33 -0500 Message-ID: <29410.1299256893@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/105 X-Sequence-Number: 29615 Christian Kastner writes: > On 03/04/2011 12:58 AM, Tom Lane wrote: >> Attached is an untested patch which I'd appreciate if you (or somebody >> else who uses SSL connections more than I do) could test. > I can confirm that this fixes the issue for me. > I tested this with psql and PGSSLMODE={disable,prefer,verify-ca}, with > various (or no) PGSSLROOTCERTs in the case of verify-ca. In all cases, > the result was the expected one. Great, thanks very much for testing! I've applied the patch (with the adjustment of error message) to HEAD and 9.0. regards, tom lane