~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_copy.c

  • Committer: Stewart Smith
  • Date: 2008-10-15 03:29:08 UTC
  • mto: This revision was merged to the branch mainline in revision 516.
  • Revision ID: stewart@flamingspork.com-20081015032908-5yfuhiayx1z24wcb
a few warnings that show up on ubuntu 8.10: unchecked return codes, not fromat string

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;