This small patch will properly list only the directories from the ${MYSQL_DATA} directory instead of listing and trying to import other files into MySQL that may reside there. This patch applies to both versions 1.1 and 1.2. I imagine FreeBSD's version of 'ls' functions in the same way but someone may want to test that out before including this patch.