~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_copy.cc

  • Committer: Mark Atwood
  • Date: 2011-06-24 11:45:17 UTC
  • mfrom: (2318.6.64 rf)
  • Revision ID: me@mark.atwood.name-20110624114517-1mq8no6jlp2nrg7m
mergeĀ lp:~olafvdspek/drizzle/refactor15

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
    /* Copy modes if possible */
107
107
 
108
108
    if (MyFlags & MY_HOLD_ORIGINAL_MODES && !new_file_stat)
109
 
        return(0);                      /* File copyed but not stat */
 
109
        return 0;                       /* File copyed but not stat */
110
110
    chmod(to, stat_buff.st_mode & 07777); /* Copy modes */
111
111
    if(chown(to, stat_buff.st_uid,stat_buff.st_gid)!=0)
112
112
        return 0;
117
117
      timep.modtime = stat_buff.st_mtime;
118
118
      utime((char*) to, &timep); /* last accessed and modified times */
119
119
    }
120
 
    return(0);
 
120
    return 0;
121
121
  }
122
122
 
123
123
err: