Commit addf8304 authored by unknown's avatar unknown

reverting a fix

sql/sql_acl.cc:
  I revert my last change, as this requires further elaboration.
  For the moment we should document it in the manual.
  
  If MySQL 4.0.2 or higher is used with pre-4.0.2 user privilege table, 
  then user with no global privs at all will have privileges to:
  
  * LOCK TABLES
  * CREATE TEMPORARY TABLES
  * run commsnd SHOW DATABASES
parent 38e811fd
......@@ -297,8 +297,7 @@ int acl_init(bool dont_read_acl_tables)
user.access|=REFERENCES_ACL | INDEX_ACL | ALTER_ACL;
}
/* Convert old privileges */
if (user.access)
user.access|= LOCK_TABLES_ACL | CREATE_TMP_ACL | SHOW_DB_ACL;
user.access|= LOCK_TABLES_ACL | CREATE_TMP_ACL | SHOW_DB_ACL;
if (user.access & FILE_ACL)
user.access|= REPL_CLIENT_ACL | REPL_SLAVE_ACL;
if (user.access & PROCESS_ACL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment