openbsd-ports/archivers/arc/patches/patch-arcext_c
naddy 09f9bc1746 Update to 5.21n.
The upstream code now opens temporary files in a secure manner.
2005-10-13 18:05:20 +00:00

22 lines
613 B
Plaintext

$OpenBSD: patch-arcext_c,v 1.2 2005/10/13 18:05:20 naddy Exp $
--- arcext.c.orig Tue Oct 11 23:47:29 2005
+++ arcext.c Tue Oct 11 23:47:45 2005
@@ -143,7 +143,7 @@ extfile(hdr, path, prt) /* extract a fi
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 @@ extfile(hdr, path, prt) /* extract a fi
if (!f)
#endif
{
- if (warn) {
+ if (arcwarn) {
printf("Cannot create %s\n", fix);
nerrs++;
}