ports/archivers/arc/patches/patch-arcio_c

24 lines
717 B
Text

--- arcio.c.orig Sat Aug 7 10:06:42 2010
+++ arcio.c Thu May 19 23:35:46 2011
@@ -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))