mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Make pwdfMatchesString() a little more careful about matching * fields.
This commit is contained in:
parent
939a40b0af
commit
2c39ab12f3
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.373 2009/04/24 09:43:10 mha Exp $
|
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.374 2009/05/18 16:15:22 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -3779,7 +3779,7 @@ pwdfMatchesString(char *buf, char *token)
|
|||||||
return NULL;
|
return NULL;
|
||||||
tbuf = buf;
|
tbuf = buf;
|
||||||
ttok = token;
|
ttok = token;
|
||||||
if (*tbuf == '*')
|
if (tbuf[0] == '*' && tbuf[1] == ':')
|
||||||
return tbuf + 2;
|
return tbuf + 2;
|
||||||
while (*tbuf != 0)
|
while (*tbuf != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user