Merge mysql.com:/home/bkroot/mysql-4.1 into mysql.com:/home/bk/mysql-4.1
This commit is contained in:
commit
31d0786687
@ -93,18 +93,20 @@ int check_if_legal_filename(const char *path)
|
|||||||
path+= dirname_length(path); /* To start of filename */
|
path+= dirname_length(path); /* To start of filename */
|
||||||
if (!(end= strchr(path, FN_EXTCHAR)))
|
if (!(end= strchr(path, FN_EXTCHAR)))
|
||||||
end= strend(path);
|
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 */
|
DBUG_RETURN(0); /* Simplify inner loop */
|
||||||
|
|
||||||
for (reserved_name= reserved_names; *reserved_name; reserved_name++)
|
for (reserved_name= reserved_names; *reserved_name; reserved_name++)
|
||||||
{
|
{
|
||||||
const char *name= path;
|
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) !=
|
if (*current_reserved_name != my_toupper(&my_charset_latin1, *name))
|
||||||
my_toupper(&my_charset_latin1, *name))
|
|
||||||
break;
|
break;
|
||||||
if (name++ == end)
|
current_reserved_name++;
|
||||||
|
if (++name == end)
|
||||||
DBUG_RETURN(1); /* Found wrong path */
|
DBUG_RETURN(1); /* Found wrong path */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ public:
|
|||||||
virtual bool set_flags_processor(byte *args)
|
virtual bool set_flags_processor(byte *args)
|
||||||
{
|
{
|
||||||
this->item_flags|= *((uint8*)args);
|
this->item_flags|= *((uint8*)args);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user