patch-arcio_c 781 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-arcio_c,v 1.3 2011/05/23 13:42:10 gsoares Exp $
  2. --- arcio.c.orig Sat Aug 7 10:06:42 2010
  3. +++ arcio.c Thu May 19 23:35:46 2011
  4. @@ -46,7 +46,7 @@ readhdr(hdr, f) /* read a header from an archive */
  5. return 0; /* then signal end of archive */
  6. if (hdrver != ARCMARK) { /* check archive validity */
  7. - if (warn) {
  8. + if (arcwarn) {
  9. printf("An entry in %s has a bad header.\n", arcname);
  10. nerrs++;
  11. }
  12. @@ -67,10 +67,10 @@ readhdr(hdr, f) /* read a header from an archive */
  13. if (feof(f) && first)
  14. arcdie("%s is not an archive", arcname);
  15. - if (changing && warn)
  16. + if (changing && arcwarn)
  17. arcdie("%s is corrupted -- changes disallowed", arcname);
  18. - if (warn)
  19. + if (arcwarn)
  20. printf(" %d bytes skipped.\n", try);
  21. if (feof(f))