mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Bug #29325: create table overwrites .MYD file of other
table (datadir) Set errno when retunring an error in my_create_with_symlink.
This commit is contained in:
parent
4f579b8d0e
commit
94535ca828
1 changed files with 2 additions and 0 deletions
|
@ -52,11 +52,13 @@ File my_create_with_symlink(const char *linkname, const char *filename,
|
|||
{
|
||||
if (!access(filename,F_OK))
|
||||
{
|
||||
my_errno= errno= EEXIST;
|
||||
my_error(EE_CANTCREATEFILE, MYF(0), filename, EEXIST);
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
if (create_link && !access(linkname,F_OK))
|
||||
{
|
||||
my_errno= errno= EEXIST;
|
||||
my_error(EE_CANTCREATEFILE, MYF(0), linkname, EEXIST);
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue