Hi,
here goes a patch for the bug <http://bugs.mysqsl.com/22615>.
Do you think this is enough, or it should be configurable?
Cheers,
Koke
PS: Just in case attachments get lost, they're available at
http://people.warp.es/~koke/patches/
# HG changeset patch
# User Jorge Bernal <jbernal@stripped>
# Date 1178666303 -7200
# Node ID 33cacf0e42cf057084d6dba57ebd80ca5665bf4d
# Parent 67963b78daef0bb6e54d4e53e568e76e59a03ea3
Don't interpret lost+found directories in data dir as databases. Fixes #22615
diff -r 67963b78daef -r 33cacf0e42cf sql/sql_show.cc
--- a/sql/sql_show.cc Tue May 08 16:44:50 2007 +0200
+++ b/sql/sql_show.cc Wed May 09 01:18:23 2007 +0200
@@ -528,6 +528,8 @@ find_files(THD *thd, List<char> *files,
((file->name[1] == '.' && file->name[2] == '\0') ||
file->name[1] == '\0')))
continue; /* . or .. */
+ if (!strcmp(file->name,"lost+found"))
+ continue; /* #22615: Ignore lost+found directory */
#ifdef USE_SYMDIR
char *ext;
char buff[FN_REFLEN];
--
Jorge Bernal Ordovás <koke@stripped>
http://amedias.org/ [ES]
http://koke.amedias.org/ [EN]
Warp Networks http://www.warp.es/
D. Jaime I 33 3º Dcha, 50001 Zaragoza, Spain