~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_format.cc

  • Committer: Eric Lambert
  • Date: 2009-06-18 17:36:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1069.
  • Revision ID: eric.d.lambert@gmail.com-20090618173619-wtzcufvc5lnnpsfj
-it appears that the result from symlink() in ha_archive can not be 
 safely ignored, so check for error and then do the right thing.
-clarified parenthesis in if statement in mf_format.cc. Current config
 was causing compiler warning on gcc-4.3.2 on fedora 10

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    struct stat stat_buff;
101
101
    char rp_buff[PATH_MAX];
102
102
    if ((!flag & MY_RESOLVE_SYMLINKS) || 
103
 
       (!lstat(to,&stat_buff)) && S_ISLNK(stat_buff.st_mode))
 
103
       (!lstat(to,&stat_buff) && S_ISLNK(stat_buff.st_mode)))
104
104
    {
105
105
      if (!realpath(to,rp_buff))
106
106
        my_load_path(rp_buff, to, NULL);