Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9abb4be2
Commit
9abb4be2
authored
Dec 12, 2003
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/dlenev/src/mysql-4.0-mydir2
parents
324e9799
d7ebfbab
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
188 additions
and
164 deletions
+188
-164
include/my_dir.h
include/my_dir.h
+9
-2
mysys/my_lib.c
mysys/my_lib.c
+178
-161
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
include/my_dir.h
View file @
9abb4be2
...
...
@@ -74,14 +74,21 @@ typedef struct my_stat
#endif
/* USE_MY_STAT_STRUCT */
typedef
struct
fileinfo
/* Struct returned from my_dir & my_stat */
/* Struct describing one file returned from my_dir */
typedef
struct
fileinfo
{
char
*
name
;
MY_STAT
mystat
;
MY_STAT
*
mystat
;
}
FILEINFO
;
typedef
struct
st_my_dir
/* Struct returned from my_dir */
{
/*
These members are just copies of parts of DYNAMIC_ARRAY structure,
which is allocated right after the end of MY_DIR structure (MEM_ROOT
for storing names is also resides there). We've left them here because
we don't want to change code that uses my_dir.
*/
struct
fileinfo
*
dir_entry
;
uint
number_off_files
;
}
MY_DIR
;
...
...
mysys/my_lib.c
View file @
9abb4be2
This diff is collapsed.
Click to expand it.
sql/sql_show.cc
View file @
9abb4be2
...
...
@@ -213,7 +213,7 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
else
#endif
{
if
(
file
->
name
[
0
]
==
'.'
||
!
MY_S_ISDIR
(
file
->
mystat
.
st_mode
)
||
if
(
file
->
name
[
0
]
==
'.'
||
!
MY_S_ISDIR
(
file
->
mystat
->
st_mode
)
||
(
wild
&&
wild_compare
(
file
->
name
,
wild
)))
continue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment