git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf50caf)
Don't make "replication" magical as a user name, only as a database name, in pg_hba...
2011年4月10日 18:51:26 +0000 (14:51 -0400)
2011年4月10日 18:51:26 +0000 (14:51 -0400)
Per gripe from Josh Berkus.


diff --git a/src/backend/libpq/hba.c b/src/backend/libpq/hba.c
index fdc29aaa72d3f081904153443c372edf0d5bd2b5..1f79c8fe007ff9882287728eb734e933b0f9be1c 100644 (file)
--- a/src/backend/libpq/hba.c
+++ b/src/backend/libpq/hba.c
@@ -492,6 +492,8 @@ check_role(const char *role, Oid roleid, char *param_str)
return true;
}
else if (strcmp(tok, role) == 0 ||
+ (strcmp(tok, "replication\n") == 0 &&
+ strcmp(role,"replication") ==0) ||
strcmp(tok, "all\n") == 0)
return true;
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /