diff options
author | unknown <monty@mysql.com> | 2004-05-06 13:42:26 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-05-06 13:42:26 +0300 |
commit | 29b87b34d79da9e35f4bc5c8e6f89c2c084c7b83 (patch) | |
tree | 9a75e17ac46c0c2c536c9050f133f4319e09c69e /sql/sql_acl.cc | |
parent | 97794e7e6ae7c1f098a51e63774dd8de9f201e6d (diff) | |
parent | afb882c43a644b79d6a11574160fe8b95d8d3018 (diff) | |
download | mariadb-git-29b87b34d79da9e35f4bc5c8e6f89c2c084c7b83.tar.gz |
Merge with 4.0 to get security patch for check_grant_colum
innobase/include/os0file.h:
Auto merged
innobase/os/os0file.c:
Auto merged
innobase/srv/srv0srv.c:
Auto merged
mysql-test/r/rpl_server_id2.result:
Auto merged
sql/ha_innodb.cc:
Auto merged
sql/slave.cc:
Merge with 4.0
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 27aaf06d872..b2d030b523d 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -2764,9 +2764,9 @@ bool check_grant_column(THD *thd,TABLE *table, const char *name, if (table->grant.version != grant_version) { table->grant.grant_table= - table_hash_search(thd->host,thd->ip,thd->db, + table_hash_search(thd->host, thd->ip, table->table_cache_key, thd->priv_user, - table->real_name,0); /* purecov: inspected */ + table->real_name, 0); /* purecov: inspected */ table->grant.version=grant_version; /* purecov: inspected */ } if (!(grant_table=table->grant.grant_table)) @@ -3161,7 +3161,7 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user) /* Add database access */ for (counter=0 ; counter < acl_dbs.elements ; counter++) { - const char *user,*host; + const char *user, *host; acl_db=dynamic_element(&acl_dbs,counter,ACL_DB*); if (!(user=acl_db->user)) |