Fix up problems in write_auth_file and parsing of the auth file.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |