diff options
author | monty@mysql.com <> | 2004-07-09 02:29:28 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-07-09 02:29:28 +0300 |
commit | 064b8b8f65a4df3611199e5dcb418ebf0b8e8134 (patch) | |
tree | d39c3dfa90aad2f93012b09513ff0ba42c1aa0cb /mysys | |
parent | 949de54454a016fa8f05d872f7732678d3bac492 (diff) | |
parent | 801a24952e268e7152c42ae6bec6112037858624 (diff) | |
download | mariadb-git-064b8b8f65a4df3611199e5dcb418ebf0b8e8134.tar.gz |
Merge with 4.0 to get bug fixes
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_lib.c | 11 |
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; |