09f9bc1746
The upstream code now opens temporary files in a secure manner.
22 lines
678 B
Plaintext
22 lines
678 B
Plaintext
$OpenBSD: patch-arcunp_c,v 1.2 2005/10/13 18:05:20 naddy Exp $
|
|
--- arcunp.c.orig Tue Oct 11 23:49:09 2005
|
|
+++ arcunp.c Tue Oct 11 23:49:30 2005
|
|
@@ -122,7 +122,7 @@ unpack(f, t, hdr) /* unpack an archive
|
|
break;
|
|
|
|
default: /* unknown method */
|
|
- if (warn) {
|
|
+ if (arcwarn) {
|
|
printf("I don't know how to unpack file %s\n", hdr->name);
|
|
printf("I think you need a newer version of ARC\n");
|
|
nerrs++;
|
|
@@ -134,7 +134,7 @@ unpack(f, t, hdr) /* unpack an archive
|
|
/* cleanups common to all methods */
|
|
|
|
if (crcval != hdr->crc) {
|
|
- if (warn || kludge) {
|
|
+ if (arcwarn || kludge) {
|
|
printf("WARNING: File %s fails CRC check\n", hdr->name);
|
|
nerrs++;
|
|
}
|