~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_db.cc

  • Committer: Stewart Smith
  • Date: 2008-06-30 04:12:46 UTC
  • mto: (12.3.1 drizzle-stew)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: stewart@flamingspork.com-20080630041246-g69vmht5i2wnfc91
fix sql_db.cc to look at errno after stat, not my_errno

Show diffs side-by-side

added added

removed removed

Lines of Context:
660
660
  }
661
661
  else
662
662
  {
663
 
    if (my_errno != ENOENT)
 
663
    if (errno != ENOENT)
664
664
    {
665
 
      my_error(EE_STAT, MYF(0), path, my_errno);
 
665
      my_error(EE_STAT, MYF(0), path, errno);
666
666
      goto exit;
667
667
    }
668
668
    if (my_mkdir(path,0777,MYF(0)) < 0)