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
14ed78e7
Commit
14ed78e7
authored
Feb 10, 2011
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge from mysql-5.5->mysql-5.5-security
parents
fe92e71d
79b70634
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sql/sql_load.cc
sql/sql_load.cc
+3
-4
No files found.
sql/sql_load.cc
View file @
14ed78e7
...
...
@@ -402,10 +402,9 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
// if we are not in slave thread, the file must be:
if
(
!
thd
->
slave_thread
&&
!
((
stat_info
.
st_mode
&
S_IROTH
)
==
S_IROTH
&&
// readable by others
(
stat_info
.
st_mode
&
S_IFLNK
)
!=
S_IFLNK
&&
// and not a symlink
((
stat_info
.
st_mode
&
S_IFREG
)
==
S_IFREG
||
(
stat_info
.
st_mode
&
S_IFIFO
)
==
S_IFIFO
)))
!
((
stat_info
.
st_mode
&
S_IFLNK
)
!=
S_IFLNK
&&
// symlink
((
stat_info
.
st_mode
&
S_IFREG
)
==
S_IFREG
||
// regular file
(
stat_info
.
st_mode
&
S_IFIFO
)
==
S_IFIFO
)))
// named pipe
{
my_error
(
ER_TEXTFILE_NOT_READABLE
,
MYF
(
0
),
name
);
DBUG_RETURN
(
TRUE
);
...
...
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