List:Commits« Previous MessageNext Message »
From:Alexander Nozdrin Date:March 26 2009 12:53pm
Subject:bzr commit into mysql-6.0 branch (alik:2753) Bug#38347
View as plain text  
#At file:///mnt/raid/alik/MySQL/bzr/00.builds/6.0-rt/ based on revid:alik@stripped

 2753 Alexander Nozdrin	2009-03-26
      Additional patch for Bug#38347 (ALTER ROUTINE privilege
      allows SHOW CREATE TABLE).

    modified:
      sql/sql_parse.cc
=== modified file 'sql/sql_parse.cc'
--- a/sql/sql_parse.cc	2009-03-26 06:08:24 +0000
+++ b/sql/sql_parse.cc	2009-03-26 12:53:36 +0000
@@ -2900,8 +2900,10 @@ ddl_blocker_err:
       else
       {
         ulong save_priv;
+        ulong privs= test(first_table->schema_table) ?
+                     SELECT_ACL : SHOW_CREATE_TABLE_ACLS;
 
-        if (check_access(thd, SHOW_CREATE_TABLE_ACLS, first_table->db,
+        if (check_access(thd, privs, first_table->db,
                          &save_priv, FALSE, FALSE,
                          test(first_table->schema_table)))
           goto error;


Attachment: [text/bzr-bundle] bzr/alik@sun.com-20090326125336-82bth7c2f2wpawso.bundle
Thread
bzr commit into mysql-6.0 branch (alik:2753) Bug#38347Alexander Nozdrin26 Mar