openbsd-ports/archivers/arc/patches/patch-arcio_c
gsoares 8f400fede0 update archivers/arc to 5.21p
OK jasper@ sthen@
OK wcmaier@ (MAINTAINER) and who wants to drop maintainership
2011-05-23 13:42:10 +00:00

26 lines
781 B
Plaintext

$OpenBSD: patch-arcio_c,v 1.3 2011/05/23 13:42:10 gsoares Exp $
--- 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))