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)
commit49ba65bb2e41c0e739cdccf4b6ae8b57f92ca175
tree4092146a9fc694d9b53b767271d108fa28c1965b
parent91813267b2763ea11020f62e7f9603a7b5335100
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