diff options
Diffstat (limited to 'databases/mysql4-server/patches/patch-bg')
-rw-r--r-- | databases/mysql4-server/patches/patch-bg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/mysql4-server/patches/patch-bg b/databases/mysql4-server/patches/patch-bg new file mode 100644 index 00000000000..d697e0b8691 --- /dev/null +++ b/databases/mysql4-server/patches/patch-bg @@ -0,0 +1,13 @@ +$NetBSD: patch-bg,v 1.1 2007/06/14 21:27:42 adrianp Exp $ + +--- sql/sql_parse.cc.orig 2006-11-03 02:17:00.000000000 +0000 ++++ sql/sql_parse.cc +@@ -2736,7 +2736,7 @@ unsent_create_error: + old_list=table[0]; + new_list=table->next[0]; + old_list.next=new_list.next=0; +- if (check_grant(thd, ALTER_ACL, &old_list, 0, UINT_MAX, 0) || ++ if (check_grant(thd, ALTER_ACL | DROP_ACL, &old_list, 0, UINT_MAX, 0) || + (!test_all_bits(table->next->grant.privilege, + INSERT_ACL | CREATE_ACL) && + check_grant(thd, INSERT_ACL | CREATE_ACL, &new_list, 0, |