freebsd-ports/archivers/arc/files/patch-ai
Christian Weisgerber 2a4fabbee2 Update to 5.21n. No user-visible changes.
The new upstream version now opens temporary files in a safe manner,
so our local patches for this are no longer needed.

Approved by:	ache
2005-10-14 12:25:57 +00:00

20 lines
468 B
Text

--- arcext.c.orig Sat Oct 8 22:24:37 2005
+++ arcext.c Fri Oct 14 00:52:14 2005
@@ -143,7 +143,7 @@
if (note)
printf("Extracting file: %s\n", fix);
- if (warn && !overlay) {
+ if (arcwarn && !overlay) {
if ((f = fopen(fix, "r"))) { /* see if it exists */
fclose(f);
printf("WARNING: File %s already exists!", fix);
@@ -190,7 +190,7 @@
if (!f)
#endif
{
- if (warn) {
+ if (arcwarn) {
printf("Cannot create %s\n", fix);
nerrs++;
}