~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_copy.c

  • Committer: Brian Aker
  • Date: 2008-10-15 06:44:44 UTC
  • mfrom: (512.1.21 drizzle-stew)
  • Revision ID: brian@tangent.org-20081015064444-p5ccnpyz558oaquy
Merging Stewart's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    if (MyFlags & MY_HOLD_ORIGINAL_MODES && !new_file_stat)
95
95
        return(0);                      /* File copyed but not stat */
96
96
    chmod(to, stat_buff.st_mode & 07777); /* Copy modes */
97
 
    chown(to, stat_buff.st_uid,stat_buff.st_gid); /* Copy ownership */
 
97
    if(chown(to, stat_buff.st_uid,stat_buff.st_gid)!=0)
 
98
        return 0;
98
99
    if (MyFlags & MY_COPYTIME)
99
100
    {
100
101
      struct utimbuf timep;