Hi all, While digging into my backlog, I have found this message from Peter E mentioning about $subject: https://www.postgresql.org/message-id/[email protected]
It seems to me that it would be a good idea to make those checks more consistent, and attached is a patch. Thoughts? -- Michael
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 2f3e0a70e0..2be59caf60 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -3781,7 +3781,7 @@ static struct config_string ConfigureNamesString[] =
},
&PromoteTriggerFile,
"",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -3903,7 +3903,7 @@ static struct config_string ConfigureNamesString[] =
},
&pg_krb_server_keyfile,
PG_KRB_SRVTAB,
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4197,7 +4197,7 @@ static struct config_string ConfigureNamesString[] =
},
&data_directory,
NULL,
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4208,7 +4208,7 @@ static struct config_string ConfigureNamesString[] =
},
&ConfigFileName,
NULL,
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4219,7 +4219,7 @@ static struct config_string ConfigureNamesString[] =
},
&HbaFileName,
NULL,
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4230,7 +4230,7 @@ static struct config_string ConfigureNamesString[] =
},
&IdentFileName,
NULL,
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4266,7 +4266,7 @@ static struct config_string ConfigureNamesString[] =
},
&ssl_cert_file,
"server.crt",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4276,7 +4276,7 @@ static struct config_string ConfigureNamesString[] =
},
&ssl_key_file,
"server.key",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4286,7 +4286,7 @@ static struct config_string ConfigureNamesString[] =
},
&ssl_ca_file,
"",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4296,7 +4296,7 @@ static struct config_string ConfigureNamesString[] =
},
&ssl_crl_file,
"",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
@@ -4369,7 +4369,7 @@ static struct config_string ConfigureNamesString[] =
},
&ssl_dh_params_file,
"",
- NULL, NULL, NULL
+ check_canonical_path, NULL, NULL
},
{
signature.asc
Description: PGP signature
