~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_symlink2.cc

  • Committer: Paul McCullagh
  • Date: 2010-05-26 10:17:56 UTC
  • mto: (1567.1.3 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: paul.mccullagh@primebase.org-20100526101756-3qdwb9id3qhog0z1
Adjust for namespace changes

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
    }