[prev in list] [next in list] [prev in thread] [next in thread]
List: pgsql-committers
Subject: Re: pgsql: Refactor code handling the names of files loaded in hba.c
From: Julien Rouhaud <rjuju123 () gmail ! com>
Date: 2022-10-26 3:27:30
Message-ID: 20221026032730.k3sib5krgm7l6njk () jrouhaud
[Download RAW message or body]
Hi,
On Wed, Oct 26, 2022 at 02:53:08AM +0000, Michael Paquier wrote:
> Refactor code handling the names of files loaded in hba.c
For the record there is a couple of thinko in the extracted patch:
@@ -1063,6 +1064,7 @@ HbaLine *
parse_hba_line(TokenizedAuthLine *tok_line, int elevel)
{
int line_num = tok_line->line_num;
+ char *file_name = tok_line->file_name;
char **err_msg = &tok_line->err_msg;
char *str;
struct addrinfo *gai_result;
@@ -1077,6 +1079,7 @@ parse_hba_line(TokenizedAuthLine *tok_line, int elevel)
HbaLine *parsedline;
parsedline = palloc0(sizeof(HbaLine));
+ parsedline->sourcefile = pstrdup(tok_line->file_name);
This should have used the "file_name" variable rather than accessing it via
tok_line, same for parse_ident_line.
I fixed it in the v14 sent on the main thread, unfortunately sent a bit too
late.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic