forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7977ac1
committed
Fix path reference when parsing pg_ident.conf for pg_ident_file_mappings
Sincea2c8499, HbaFileName (default pg_hba.conf) was getting usedinstead of IdentFileName (default pg_ident.conf) as the parent file touse as reference when parsing the contents of pg_ident.conf, withpg_ident.conf correctly opened, when feeding this information topg_ident_file_mappings. This had two consequences:- On an I/O error when reading pg_ident.conf, the user would get anERROR message referring to pg_hba.conf and not pg_ident.conf.- When reading an external file with a relative path using '@' inpg_ident.conf, the directory used to look at the file to load would bethe base directory of pg_hba.conf rather than the one of pg_ident.conf,leading to errors in pg_ident_file_mappings inconsistent with what getsloaded at startup when pg_ident.conf and pg_hba.conf are located indifferent directories.This error only impacted the SQL view pg_ident_file_mappings that uses alogic new to v15 to fill the view with the parsed information, not thecode paths loading these authentication files at startup.Author: Julien RouhaudDiscussion:https://postgr.es/m/20220726050402.vsr6fmz7rsgpmdz3@jrouhaudBackpatch-through: 151 parente1bd499 commit7977ac1
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
| 515 | + | |
516 | 516 |
| |
517 | 517 |
| |
518 | 518 |
| |
|
0 commit comments
Comments
(0)