openbsd-ports/archivers/arc/patches/patch-arccvt_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

13 lines
489 B
Plaintext

$OpenBSD: patch-arccvt_c,v 1.2 2005/10/13 18:05:20 naddy Exp $
--- arccvt.c.orig Tue Oct 11 23:46:34 2005
+++ arccvt.c Tue Oct 11 23:46:44 2005
@@ -120,7 +120,7 @@ cvtfile(hdr) /* convert a file */
writehdr(hdr, new); /* write out real header */
fseek(new, hdr->size, 1); /* skip over data to next header */
fclose(tmp); /* all done with the file */
- if (unlink(tempname) && warn) {
+ if (unlink(tempname) && arcwarn) {
printf("Cannot unsave %s\n", tempname);
nerrs++;
}