diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-18 15:33:41 +0300 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-18 15:33:41 +0300 |
commit | a266c16d14a82b601f60c1987f5a9c6c779215e4 (patch) | |
tree | e35c579a43e7d61006b364fbbfadefde29b3855e /mysys | |
parent | 06b446dae4a55b48108bb85bd3ca3f70924b9b8d (diff) | |
download | mariadb-git-a266c16d14a82b601f60c1987f5a9c6c779215e4.tar.gz |
Bug #29325: create table overwrites .MYD file of other
table (datadir)
Set errno when retunring an error in my_create_with_symlink.
mysys/my_symlink2.c:
Bug #29325: set errno when retunring
an error in my_create_with_symlink
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_symlink2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_symlink2.c b/mysys/my_symlink2.c index 2ad08ef67de..e2493874097 100644 --- a/mysys/my_symlink2.c +++ b/mysys/my_symlink2.c @@ -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); } |