Fix up problems in write_auth_file and parsing of the auth file.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6561372c572eff590d7d4759b4b5ec2cdc74ba5d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-28T22:16:45Z
Releases: 8.1.0
Fix up problems in write_auth_file and parsing of the auth file.
In particular, make hba.c cope with zero-length tokens, which it
never did properly before.  Also, enforce rolcanlogin.

Files

PathChange+/−
src/backend/commands/user.c modified +9 −1
src/backend/libpq/hba.c modified +71 −40
src/backend/utils/init/flatfiles.c modified +145 −103
src/backend/utils/init/miscinit.c modified +10 −3