~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_rename.cc

MergedĀ up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    my_errno=save_errno;
41
41
  }
42
42
#endif
43
 
#if defined(HAVE_RENAME)
44
43
  if (rename(from,to))
45
 
#else
46
 
  if (link(from, to) || unlink(from))
47
 
#endif
48
44
  {
49
45
    my_errno=errno;
50
46
    error = -1;