Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95825af

Browse files
committed
[Issue#197] setting session parameters via PGOPTIONS envvar breaks parsing of backup.control
1 parentf7159f3 commit95825af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/utils/pgut.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,10 @@ pgut_get_conninfo_string(PGconn *conn)
187187
(option->val!=NULL&&option->val[0]=='\0'))
188188
continue;
189189

190-
/* do not print password into the file */
191-
if (strcmp(option->keyword,"password")==0)
190+
/* do not print password, passfile and options into the file */
191+
if (strcmp(option->keyword,"password")==0||
192+
strcmp(option->keyword,"passfile")==0||
193+
strcmp(option->keyword,"options")==0)
192194
continue;
193195

194196
if (!firstkeyword)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp