aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/user.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-28 22:16:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-28 22:16:45 +0000
commit6561372c572eff590d7d4759b4b5ec2cdc74ba5d (patch)
tree8f41fe7427f27604ed3c902786bca45157262a36 /src/backend/commands/user.c
parent0eaa36a16a89029f1b2eb9a38c90e3a0a0e2641e (diff)
downloadpostgresql-6561372c572eff590d7d4759b4b5ec2cdc74ba5d.tar.gz
postgresql-6561372c572eff590d7d4759b4b5ec2cdc74ba5d.zip
Fix up problems in write_auth_file and parsing of the auth file.
In particular, make hba.c cope with zero-length tokens, which it never did properly before. Also, enforce rolcanlogin.
Diffstat (limited to 'src/backend/commands/user.c')
-rw-r--r--src/backend/commands/user.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/backend/commands/user.c b/src/backend/commands/user.c
index 0d34e57b258..e1e3e16a350 100644
--- a/src/backend/commands/user.c
+++ b/src/backend/commands/user.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.153 2005/06/28 19:51:22 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.154 2005/06/28 22:16:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -859,6 +859,9 @@ RenameRole(const char *oldname, const char *newname)
ReleaseSysCache(oldtuple);
heap_close(rel, NoLock);
+ /*
+ * Set flag to update flat auth file at commit.
+ */
auth_file_update_needed();
}
@@ -902,6 +905,11 @@ GrantRole(GrantRoleStmt *stmt)
stmt->grantee_roles, grantee_ids,
stmt->admin_opt);
}
+
+ /*
+ * Set flag to update flat auth file at commit.
+ */
+ auth_file_update_needed();
}
/*