summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-07-09 02:29:28 +0300
committerunknown <monty@mysql.com>2004-07-09 02:29:28 +0300
commit53ca595451d53fccd60b1112c444e5278021c1ee (patch)
treed39c3dfa90aad2f93012b09513ff0ba42c1aa0cb /mysys
parent661b8165eced19f1943aeee1b166ff10191ab037 (diff)
parentee9890162e2a2b44f8b09c14b0a22ba9d086df95 (diff)
downloadmariadb-git-53ca595451d53fccd60b1112c444e5278021c1ee.tar.gz
Merge with 4.0 to get bug fixes
Build-tools/Bootstrap: Auto merged Build-tools/Do-compile: Auto merged mysql-test/r/lowercase_table2.result: Auto merged mysql-test/r/system_mysql_db.result: Auto merged mysql-test/r/system_mysql_db_refs.result: Auto merged mysql-test/t/system_mysql_db_fix-master.opt: Auto merged mysql-test/t/system_mysql_db.test: Auto merged
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_lib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysys/my_lib.c b/mysys/my_lib.c
index 055e00d2efc..0207d9a3683 100644
--- a/mysys/my_lib.c
+++ b/mysys/my_lib.c
@@ -461,6 +461,17 @@ MY_DIR *my_dir(const char *path, myf MyFlags)
else
finfo.mystat= NULL;
+ /*
+ If the directory is the root directory of the drive, Windows sometimes
+ creates hidden or system files there (like RECYCLER); do not show
+ them. We would need to see how this can be achieved with a Borland
+ compiler.
+ */
+#ifndef __BORLANDC__
+ if (attrib & (_A_HIDDEN | _A_SYSTEM))
+ continue;
+#endif
+
if (push_dynamic(dir_entries_storage, (gptr)&finfo))
goto error;