~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/set_var.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
2162
2162
static int  sys_check_log_path(THD *thd,  set_var *var)
2163
2163
{
2164
2164
  char path[FN_REFLEN], buff[FN_REFLEN];
2165
 
  MY_STAT f_stat;
 
2165
  struct stat f_stat;
2166
2166
  String str(buff, sizeof(buff), system_charset_info), *res;
2167
2167
  const char *log_file_str;
2168
2168
  size_t path_length;
2171
2171
    goto err;
2172
2172
 
2173
2173
  log_file_str= res->c_ptr();
2174
 
  bzero(&f_stat, sizeof(MY_STAT));
 
2174
  bzero(&f_stat, sizeof(struct stat));
2175
2175
 
2176
2176
  path_length= unpack_filename(path, log_file_str);
2177
2177
 
2182
2182
    goto err;
2183
2183
  }
2184
2184
 
2185
 
  if (my_stat(path, &f_stat, MYF(0)))
 
2185
  if (!stat(path, &f_stat))
2186
2186
  {
2187
2187
    /*
2188
2188
      A file system object exists. Check if argument is a file and we have