List:Internals« Previous MessageNext Message »
From:reggie Date:June 22 2005 8:53pm
Subject:bk commit into 5.0 tree (reggie:1.1998)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of reggie. When reggie 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
  1.1998 05/06/22 15:51:30 reggie@mdk10.(none) +1 -0
  Merge mdk10.(none):/home/reggie/bk/bug9148
  into mdk10.(none):/home/reggie/bk/mysql-5.0-base

  mysys/my_access.c
    1.5 05/06/22 15:51:21 reggie@mdk10.(none) +0 -0
    Auto merged

# 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:	reggie
# Host:	mdk10.(none)
# Root:	/home/reggie/bk/mysql-5.0-base/RESYNC

--- 1.4/mysys/my_access.c	2005-06-03 06:42:57 -05:00
+++ 1.5/mysys/my_access.c	2005-06-22 15:51:21 -05:00
@@ -93,18 +93,20 @@
   path+= dirname_length(path);                  /* To start of filename */
   if (!(end= strchr(path, FN_EXTCHAR)))
     end= strend(path);
-  if (path == end || (uint) (path - end) > MAX_RESERVED_NAME_LENGTH)
+  if (path == end || (uint) (end - path) > MAX_RESERVED_NAME_LENGTH)
     DBUG_RETURN(0);                             /* Simplify inner loop */
 
   for (reserved_name= reserved_names; *reserved_name; reserved_name++)
   {
     const char *name= path;
-    while (name != end)
+    const char *current_reserved_name= *reserved_name;
+    
+    while (name != end && *current_reserved_name)
     {
-      if (my_toupper(&my_charset_latin1, *path) !=
-          my_toupper(&my_charset_latin1, *name))
+      if (*current_reserved_name != my_toupper(&my_charset_latin1, *name))
         break;
-      if (name++ == end)
+      current_reserved_name++;
+      if (++name == end)
         DBUG_RETURN(1);                         /* Found wrong path */
     }
   }
Thread
bk commit into 5.0 tree (reggie:1.1998)reggie22 Jun