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
86b22609
Commit
86b22609
authored
May 14, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DROP DATABASE with symlinks did not work before
parent
bb340c9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Docs/manual.texi
Docs/manual.texi
+2
-0
sql/sql_db.cc
sql/sql_db.cc
+8
-1
No files found.
Docs/manual.texi
View file @
86b22609
...
...
@@ -46771,6 +46771,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet
@item
Fixed bug in DROP DATABASE with symlink
@item
Multi-table @code{DELETE}.
@item
Don't support old client protocols prior to MySQL 3.21 any more.
sql/sql_db.cc
View file @
86b22609
...
...
@@ -271,9 +271,16 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *org_path,
*/
if
(
!
found_other_files
)
{
char
tmp_path
[
FN_REFLEN
];
char
tmp_path
[
FN_REFLEN
]
,
lnk_path
[
FN_REFLEN
]
;
char
*
path
=
unpack_filename
(
tmp_path
,
org_path
);
#ifdef HAVE_READLINK
if
(
path
[
0
]
==
FN_CURLIB
)
{
int
length
=
(
strxmov
(
lnk_path
,
curr_dir
,
path
+
2
,
NullS
)
-
lnk_path
)
-
1
;
path
=
lnk_path
;
if
(
path
[
length
]
==
FN_LIBCHAR
)
path
[
length
]
=
'\0'
;
}
int
linkcount
=
readlink
(
path
,
filePath
,
sizeof
(
filePath
)
-
1
);
if
(
linkcount
>
0
)
// If the path was a symbolic link
{
...
...
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