]> granicus.if.org Git - postgresql/commit
Use error message wordings for permissions checks on .pgpass and SSL private
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Mar 2008 02:43:14 +0000 (02:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 31 Mar 2008 02:43:14 +0000 (02:43 +0000)
commit3405f2b92532cb9559aed1316b3df2262aaadaef
tree7bc8067b5b80cef7ef751871efc07eef34ce91d2
parentc5f11f9d19964b8dc568bc4b9bfff7d31ee26db0
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.
doc/src/sgml/libpq.sgml
doc/src/sgml/runtime.sgml
src/backend/libpq/be-secure.c
src/backend/postmaster/postmaster.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-secure.c