diff options
author | gluh@eagle.intranet.mysql.r18.ru <> | 2006-01-24 15:59:08 +0400 |
---|---|---|
committer | gluh@eagle.intranet.mysql.r18.ru <> | 2006-01-24 15:59:08 +0400 |
commit | fa776a6f6752b0b23fc89e0fd9887c747de0766b (patch) | |
tree | 26fbb68766c042b22a44a8c08ca1364dad639749 /mysys | |
parent | 86cb9bf94dc49db0824f389e7e81233b54e5b52c (diff) | |
download | mariadb-git-fa776a6f6752b0b23fc89e0fd9887c747de0766b.tar.gz |
Fix for bug#15851 Unlistable directories yield no info from information_schema
to skip directories which are not allowed for read
Diffstat (limited to 'mysys')
-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; |