~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_copy.c

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:59 UTC
  • mfrom: (518 drizzle)
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063259-fwbqogq7lnezct0l
Merged with trunk.

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;