List:Commits« Previous MessageNext Message »
From:kgeorge Date:July 18 2007 2:33pm
Subject:bk commit into 5.0 tree (gkodinov:1.2534) BUG#29325
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kgeorge. When kgeorge does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-07-18 15:33:41+03:00, gkodinov@stripped +1 -0
  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@stripped, 2007-07-18 15:33:39+03:00, gkodinov@stripped +2 -0
    Bug #29325: set errno when retunring 
    an error in my_create_with_symlink

diff -Nrup a/mysys/my_symlink2.c b/mysys/my_symlink2.c
--- a/mysys/my_symlink2.c	2006-12-23 21:04:08 +02:00
+++ b/mysys/my_symlink2.c	2007-07-18 15:33:39 +03:00
@@ -52,11 +52,13 @@ File my_create_with_symlink(const char *
   {
     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);
     }
Thread
bk commit into 5.0 tree (gkodinov:1.2534) BUG#29325kgeorge18 Jul