List:Commits« Previous MessageNext Message »
From:Alexey Kopytov Date:June 6 2007 9:47pm
Subject:bk commit into 5.1 tree (kaa:1.2545)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of kaa. When kaa does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-06-06 23:47:43+04:00, kaa@stripped +1 -0
  Merge polly.local:/home/kaa/src/maint/bug28895/my51-bug28895
  into  polly.local:/home/kaa/src/maint/mysql-5.1-maint
  MERGE: 1.2537.1.1

  sql/sql_acl.cc@stripped, 2007-06-06 23:47:38+04:00, kaa@stripped +0 -0
    Auto merged
    MERGE: 1.234.3.1

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	kaa
# Host:	polly.local
# Root:	/home/kaa/src/maint/mysql-5.1-maint/RESYNC

--- 1.236/sql/sql_acl.cc	2007-06-01 11:43:53 +04:00
+++ 1.237/sql/sql_acl.cc	2007-06-06 23:47:38 +04:00
@@ -1110,14 +1110,15 @@ bool acl_getroot_no_password(Security_co
   */
   for (i=0 ; i < acl_users.elements ; i++)
   {
-    acl_user= dynamic_element(&acl_users,i,ACL_USER*);
-    if ((!acl_user->user && !user[0]) ||
-	(acl_user->user && strcmp(user, acl_user->user) == 0))
+    ACL_USER *acl_user_tmp= dynamic_element(&acl_users,i,ACL_USER*);
+    if ((!acl_user_tmp->user && !user[0]) ||
+        (acl_user_tmp->user && strcmp(user, acl_user_tmp->user) == 0))
     {
-      if (compare_hostname(&acl_user->host, host, ip))
+      if (compare_hostname(&acl_user_tmp->host, host, ip))
       {
-	res= 0;
-	break;
+        acl_user= acl_user_tmp;
+        res= 0;
+        break;
       }
     }
   }
Thread
bk commit into 5.1 tree (kaa:1.2545)Alexey Kopytov6 Jun