Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fa2afcfe
Commit
fa2afcfe
authored
Apr 15, 2009
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing gettext calls around some strings. Also remove quotes around the
%s that they expand to, per comment from Tom.
parent
1bb257fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+7
-6
No files found.
src/backend/libpq/hba.c
View file @
fa2afcfe
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.18
4 2009/03/25 14:12:02 pete
re Exp $
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.18
5 2009/04/15 21:42:50 alvher
re Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -578,8 +578,9 @@ check_db(const char *dbname, const char *role, char *param_str)
#define INVALID_AUTH_OPTION(optname, validmethods) do {\
ereport(LOG, \
(errcode(ERRCODE_CONFIG_FILE_ERROR), \
errmsg("authentication option \"%s\" is only valid for authentication methods \"%s\"", \
optname, validmethods), \
/* translator: the second %s is a list of auth methods */
\
errmsg("authentication option \"%s\" is only valid for authentication methods %s", \
optname, _(validmethods)), \
errcontext("line %d of configuration file \"%s\"", \
line_num, HbaFileName))); \
return false; \
...
...
@@ -952,7 +953,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
parsedline
->
auth_method
!=
uaGSS
&&
parsedline
->
auth_method
!=
uaSSPI
&&
parsedline
->
auth_method
!=
uaCert
)
INVALID_AUTH_OPTION
(
"map"
,
"ident, krb5, gssapi, sspi and cert"
);
INVALID_AUTH_OPTION
(
"map"
,
gettext_noop
(
"ident, krb5, gssapi, sspi and cert"
)
);
parsedline
->
usermap
=
pstrdup
(
c
);
}
else
if
(
strcmp
(
token
,
"clientcert"
)
==
0
)
...
...
@@ -1050,7 +1051,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
if
(
parsedline
->
auth_method
!=
uaKrb5
&&
parsedline
->
auth_method
!=
uaGSS
&&
parsedline
->
auth_method
!=
uaSSPI
)
INVALID_AUTH_OPTION
(
"krb_realm"
,
"krb5, gssapi and sspi"
);
INVALID_AUTH_OPTION
(
"krb_realm"
,
gettext_noop
(
"krb5, gssapi and sspi"
)
);
parsedline
->
krb_realm
=
pstrdup
(
c
);
}
else
if
(
strcmp
(
token
,
"include_realm"
)
==
0
)
...
...
@@ -1058,7 +1059,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
if
(
parsedline
->
auth_method
!=
uaKrb5
&&
parsedline
->
auth_method
!=
uaGSS
&&
parsedline
->
auth_method
!=
uaSSPI
)
INVALID_AUTH_OPTION
(
"include_realm"
,
"krb5, gssapi and sspi"
);
INVALID_AUTH_OPTION
(
"include_realm"
,
gettext_noop
(
"krb5, gssapi and sspi"
)
);
if
(
strcmp
(
c
,
"1"
)
==
0
)
parsedline
->
include_realm
=
true
;
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment