~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_symlink2.c

Renamed strings to mystrings, for include/lib naming consistency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "mysys_priv.h"
24
24
#include "mysys_err.h"
25
 
#include <mystrings/m_string.h>
 
25
#include <m_string.h>
26
26
 
27
27
File my_create_with_symlink(const char *linkname, const char *filename,
28
28
                            int createflags, int access_flags, myf MyFlags)
130
130
    return(my_rename(from, to, MyFlags));
131
131
 
132
132
  /* Change filename that symlink pointed to */
133
 
  my_stpcpy(tmp_name, to);
 
133
  strmov(tmp_name, to);
134
134
  fn_same(tmp_name,link_name,1);                /* Copy dir */
135
135
  name_is_different= strcmp(link_name, tmp_name);
136
136
  if (name_is_different && !access(tmp_name, F_OK))