Skip site navigation (1) Skip section navigation (2)

pgsql: Use error message wordings for permissions checks on .pgpass and

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use error message wordings for permissions checks on .pgpass and
Date: 2008-03-31 02:43:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Log Message:
Use error message wordings for permissions checks on .pgpass and SSL private
key files that are similar to the one for the postmaster's data directory
permissions check.  (I chose to standardize on that one since it's the most
heavily used and presumably best-wordsmithed by now.)  Also eliminate explicit
tests on file ownership in these places, since the ensuing read attempt must
fail anyway if it's wrong, and there seems no value in issuing the same error
message for distinct problems.  (But I left in the explicit ownership test in
postmaster.c, since it had its own error message anyway.)  Also be more
specific in the documentation's descriptions of these checks.  Per a gripe
from Kevin Hunter.

Modified Files:
        libpq.sgml (r1.256 -> r1.257)
        runtime.sgml (r1.410 -> r1.411)
        be-secure.c (r1.83 -> r1.84)
        postmaster.c (r1.553 -> r1.554)
        fe-connect.c (r1.356 -> r1.357)
        fe-secure.c (r1.103 -> r1.104)

pgsql-committers by date

Next:From: Tom LaneDate: 2008-03-31 03:34:27
Subject: pgsql: Fix my brain fade in TRUNCATE triggers patch: can't release
Previous:From: Tom LaneDate: 2008-03-31 01:33:13
Subject: pgsql: Fix a number of places that were making file-type tests

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group