From addf8304a7603cac11ce5349e8aa06d2fcd6b9e7 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 9 Aug 2002 16:05:02 +0300 Subject: [PATCH] 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 --- sql/sql_acl.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 7626fb85879..aad37477a70 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -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)