~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_symlink2.cc

  • Committer: Brian Aker
  • Date: 2010-10-10 17:45:56 UTC
  • mfrom: (1831.1.1 gcc45-fixes)
  • Revision ID: brian@tangent.org-20101010174556-9187fxwvcmpy62eh
Merge in gcc 4.5 fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  {
65
65
    if (!access(filename,F_OK))
66
66
    {
67
 
      errno= errno= EEXIST;
 
67
      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= errno= EEXIST;
 
73
      errno= EEXIST;
74
74
      my_error(EE_CANTCREATEFILE, MYF(0), linkname, EEXIST);
75
75
      return(-1);
76
76
    }