summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <rburnett@build.mysql.com>2004-09-24 09:00:14 +0200
committerunknown <rburnett@build.mysql.com>2004-09-24 09:00:14 +0200
commitecd3172b00270cc53310e9eb7a009a2a44495a7e (patch)
tree1bd6c3e8a1ff187e68e72f308810bdfb5aa88949 /sql/sql_show.cc
parentb2307545cb9412fc4896c487495889979efa7d7b (diff)
downloadmariadb-git-ecd3172b00270cc53310e9eb7a009a2a44495a7e.tar.gz
Bug #5539 SHOW DATABASES LIKE and symlinks
sql_show.cc: Added wild card check to symdir block in mysql_find_files sql/sql_show.cc: Added wild card check to symdir block in mysql_find_files
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 6784cd64465..d82af1a6242 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -204,7 +204,8 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
if (end != buff && end[-1] == FN_LIBCHAR)
end[-1]= 0; // Remove end FN_LIBCHAR
if (!my_stat(buff, &status, MYF(0)) ||
- !MY_S_ISDIR(status.st_mode))
+ !MY_S_ISDIR(status.st_mode) ||
+ (wild && wild_compare(file->name, wild, 0)))
continue;
}
else