$OpenBSD: patch-arcio_c,v 1.2 2005/10/13 18:05:20 naddy Exp $ --- arcio.c.orig Wed Oct 12 12:22:18 2005 +++ arcio.c Wed Apr 15 00:59:41 2009 @@ -46,7 +46,7 @@ readhdr(hdr, f) /* read a header from an archive */ return 0; /* then signal end of archive */ if (hdrver != ARCMARK) { /* check archive validity */ - if (warn) { + if (arcwarn) { printf("An entry in %s has a bad header.\n", arcname); nerrs++; } @@ -67,10 +67,10 @@ readhdr(hdr, f) /* read a header from an archive */ if (feof(f) && first) arcdie("%s is not an archive", arcname); - if (changing && warn) + if (changing && arcwarn) arcdie("%s is corrupted -- changes disallowed", arcname); - if (warn) + if (arcwarn) printf(" %d bytes skipped.\n", try); if (feof(f))