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

Commit2c39ab1

Browse files
committed
Make pwdfMatchesString() a little more careful about matching * fields.
1 parent939a40b commit2c39ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.373 2009/04/24 09:43:10 mha Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.374 2009/05/18 16:15:22 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3779,7 +3779,7 @@ pwdfMatchesString(char *buf, char *token)
37793779
returnNULL;
37803780
tbuf=buf;
37813781
ttok=token;
3782-
if (*tbuf=='*')
3782+
if (tbuf[0]=='*'&&tbuf[1]==':')
37833783
returntbuf+2;
37843784
while (*tbuf!=0)
37853785
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp