~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_symlink.c

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
int my_readlink(char *to, const char *filename, myf MyFlags)
36
36
{
37
37
#ifndef HAVE_READLINK
38
 
  my_stpcpy(to,filename);
 
38
  stpcpy(to,filename);
39
39
  return 1;
40
40
#else
41
41
  int result=0;
47
47
    if ((my_errno=errno) == EINVAL)
48
48
    {
49
49
      result= 1;
50
 
      my_stpcpy(to,filename);
 
50
      stpcpy(to,filename);
51
51
    }
52
52
    else
53
53
    {
130
130
      my_errno=errno;
131
131
      if (MyFlags & MY_WME)
132
132
        my_error(EE_REALPATH, MYF(0), filename, my_errno);
133
 
      my_load_path(to, filename, NULL);
 
133
      my_load_path(to, filename, NullS);
134
134
      result= -1;
135
135
    }
136
136
  }
137
137
  return(result);
138
138
#else
139
 
  my_load_path(to, filename, NULL);
 
139
  my_load_path(to, filename, NullS);
140
140
  return 0;
141
141
#endif
142
142
}