diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-01-24 15:59:08 +0400 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-01-24 15:59:08 +0400 |
commit | fbc24f3376a6eb7e119af9fa6c32ca797ce1c5c0 (patch) | |
tree | 26fbb68766c042b22a44a8c08ca1364dad639749 /mysys/my_lib.c | |
parent | 03ad365b00c446a6da418cb9112448449f2e5a45 (diff) | |
download | mariadb-git-fbc24f3376a6eb7e119af9fa6c32ca797ce1c5c0.tar.gz |
Fix for bug#15851 Unlistable directories yield no info from information_schema
to skip directories which are not allowed for read
mysql-test/r/information_schema.result:
Fix for bug#15851 Unlistable directories yield no info from information_schema
test result
mysql-test/t/information_schema.test:
Fix for bug#15851 Unlistable directories yield no info from information_schema
test case
Diffstat (limited to 'mysys/my_lib.c')
-rw-r--r-- | mysys/my_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_lib.c b/mysys/my_lib.c index 1908c70f407..4ca343064d3 100644 --- a/mysys/my_lib.c +++ b/mysys/my_lib.c @@ -170,6 +170,8 @@ MY_DIR *my_dir(const char *path, myf MyFlags) bzero(finfo.mystat, sizeof(MY_STAT)); VOID(strmov(tmp_file,dp->d_name)); VOID(my_stat(tmp_path, finfo.mystat, MyFlags)); + if (!(finfo.mystat->st_mode & MY_S_IREAD)) + continue; } else finfo.mystat= NULL; |