~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_symlink2.cc

Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/*
17
17
  Advanced symlink handling.
64
64
  {
65
65
    if (!access(filename,F_OK))
66
66
    {
67
 
      errno= EEXIST;
 
67
      errno= errno= EEXIST;
68
68
      my_error(EE_CANTCREATEFILE, MYF(0), filename, EEXIST);
69
69
      return(-1);
70
70
    }
71
71
    if (create_link && !access(linkname,F_OK))
72
72
    {
73
 
      errno= EEXIST;
 
73
      errno= errno= EEXIST;
74
74
      my_error(EE_CANTCREATEFILE, MYF(0), linkname, EEXIST);
75
75
      return(-1);
76
76
    }