]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
oauth: Fix missing quote in errormessage
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 18 May 2026 15:03:09 +0000 (08:03 -0700)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 18 May 2026 15:03:09 +0000 (08:03 -0700)
The error message for incorrect oauth validator configuration was missing
a quote character. OAuth was introduced in v18 but there is no need for a
backpatch since this was introduced in 22f9207aaa37.

Author: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/ff9b84b9e6d5a3fef1f320ee5d63ec7dae722739.camel@gmail.com

src/backend/libpq/auth-oauth.c

index a6cab0c3bf41d93089641d19da73a916ca87fd6e..b769931ca4fe63ea2b3cb0ce6ad959ffe4d7122b 100644 (file)
@@ -867,7 +867,7 @@ check_oauth_validator(HbaLine *hbaline, int elevel, char **err_msg)
        {
                ereport(elevel,
                                errcode(ERRCODE_CONFIG_FILE_ERROR),
-                               errmsg("parameter \%s\" must be set for authentication method \"%s\"",
+                               errmsg("parameter \"%s\" must be set for authentication method \"%s\"",
                                           "oauth_validator_libraries", "oauth"),
                                errcontext("line %d of configuration file \"%s\"",
                                                   line_num, file_name));