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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c055ddfd
Commit
c055ddfd
authored
Nov 30, 2020
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows compilation fix
parent
27f3d487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
include/my_dir.h
include/my_dir.h
+8
-0
sql/sql_table.cc
sql/sql_table.cc
+1
-2
No files found.
include/my_dir.h
View file @
c055ddfd
...
...
@@ -33,6 +33,9 @@ extern "C" {
#define MY_S_ISUID S_ISUID
/* set user id on execution */
#define MY_S_ISGID S_ISGID
/* set group id on execution */
#define MY_S_ISVTX S_ISVTX
/* save swapped text even after use */
#if !defined(__WIN__) && ! defined(__NETWARE__)
#define MY_S_IFLNK S_IFLNK
/* symbolic link */
#endif
#ifndef S_IREAD
#define MY_S_IREAD S_IRUSR
/* read permission, owner */
...
...
@@ -49,6 +52,11 @@ extern "C" {
#define MY_S_ISBLK(m) (((m) & MY_S_IFMT) == MY_S_IFBLK)
#define MY_S_ISREG(m) (((m) & MY_S_IFMT) == MY_S_IFREG)
#define MY_S_ISFIFO(m) (((m) & MY_S_IFMT) == MY_S_IFIFO)
#if !defined(__WIN__) && ! defined(__NETWARE__)
#define MY_S_ISLNK(m) (((m) & MY_S_IFLNK) == MY_S_IFLNK)
#else
#define MY_S_ISLNK(m) (false)
#endif
/* Ensure these doesn't clash with anything in my_sys.h */
#define MY_WANT_SORT 8192
/* my_lib; sort files */
...
...
sql/sql_table.cc
View file @
c055ddfd
...
...
@@ -1183,8 +1183,7 @@ static int execute_ddl_log_action(THD *thd, DDL_LOG_ENTRY *ddl_log_entry)
from_name
=
ddl_log_entry
->
from_name
;
if
(
!
mysql_file_stat
(
key_file_frm
,
from_name
,
&
stat_info
,
MYF
(
0
)))
break
;
if
((
stat_info
.
st_mode
&
S_IFLNK
)
!=
S_IFLNK
&&
// symlink
(
stat_info
.
st_mode
&
S_IFREG
)
!=
S_IFREG
)
// regular file
if
(
!
MY_S_ISREG
(
stat_info
.
st_mode
)
&&
!
MY_S_ISLNK
(
stat_info
.
st_mode
))
break
;
}
}
...
...
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