Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dATCg-0001qE-0o for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2017 03:31:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dATCf-0006Qf-F7 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 May 2017 03:31:17 +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 1dATB8-0003hT-Tg for pgsql-hackers@postgresql.org; Tue, 16 May 2017 03:29:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dATB1-0004x5-SN for pgsql-hackers@postgresql.org; Tue, 16 May 2017 03:29:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4G3TNBE023038; Mon, 15 May 2017 23:29:23 -0400 From: Tom Lane To: Michael Paquier cc: Heikki Linnakangas , PostgreSQL mailing lists Subject: Re: src/test/ssl/t/001_ssltests.pl should not tromp on file permissions In-reply-to: References: <14836.1494885946@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Tue, 16 May 2017 11:18:02 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23036.1494905363.1@sss.pgh.pa.us> Date: Mon, 15 May 2017 23:29:23 -0400 Message-ID: <23037.1494905363@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Tue, May 16, 2017 at 7:05 AM, Tom Lane wrote: >> We could maybe make 001_ssltests.pl save and restore the file's >> permissions, but I think probably a cleaner answer is to have it >> make a temporary copy and set the permissions on that. > Ah, you are talking about ss/client.key here... Using a temporary copy > makes the most sense to me, as there is no need to think about putting > back the old permissions on test failure, and the original tree > remains unmodified all the time. Pushed with minor adjustments --- I made the test script unlink the temp file at the end, and tightened the .gitignore patterns a bit. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers