09f9bc1746
The upstream code now opens temporary files in a secure manner.
13 lines
489 B
Plaintext
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++;
|
|
}
|