/[jscoverage]/trunk/util.c
ViewVC logotype

Diff of /trunk/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 505 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 550 by siliconforks, Wed Apr 21 12:22:41 2010 UTC
# Line 422  Line 422 
422    if (fstat(fileno(source), &buf) == -1) {    if (fstat(fileno(source), &buf) == -1) {
423      fatal("cannot stat file: %s", source_file);      fatal("cannot stat file: %s", source_file);
424    }    }
425    fchmod(fileno(destination), buf.st_mode);    /* permissions should always include write bit (to avoid creating read-only file) */
426      fchmod(fileno(destination), buf.st_mode | S_IWUSR);
427  #endif  #endif
428    
429    fclose(source);    fclose(source);

Legend:
Removed from v.505  
changed lines
  Added in v.550

  ViewVC Help
Powered by ViewVC 1.1.24