diff options
author | unknown <rburnett@build.mysql.com> | 2004-09-24 09:00:14 +0200 |
---|---|---|
committer | unknown <rburnett@build.mysql.com> | 2004-09-24 09:00:14 +0200 |
commit | ecd3172b00270cc53310e9eb7a009a2a44495a7e (patch) | |
tree | 1bd6c3e8a1ff187e68e72f308810bdfb5aa88949 /sql/sql_show.cc | |
parent | b2307545cb9412fc4896c487495889979efa7d7b (diff) | |
download | mariadb-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.cc | 3 |
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 |