summaryrefslogtreecommitdiff
path: root/archivers/arc/files/patch-ag
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-03-05 09:27:28 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-03-05 09:27:28 +0000
commitcf3d05cb927395f57268d4c69af78d82e622830e (patch)
tree3de0b56eba19bd1f893342599ed85dccf4029798 /archivers/arc/files/patch-ag
parentThis is a setuid root binary. sprintf()s of DNS hostnames into undersized (diff)
From OpenBSD: generate tempfiles securely with mkstemps()
Approved by: Maintainer
Notes
Notes: svn path=/head/; revision=26556
Diffstat (limited to 'archivers/arc/files/patch-ag')
-rw-r--r--archivers/arc/files/patch-ag11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/arc/files/patch-ag b/archivers/arc/files/patch-ag
new file mode 100644
index 000000000000..1f496113cbb2
--- /dev/null
+++ b/archivers/arc/files/patch-ag
@@ -0,0 +1,11 @@
+--- ./arccvt.c.orig Tue Aug 10 23:03:24 1999
++++ ./arccvt.c Tue Aug 10 23:01:55 1999
+@@ -120,7 +120,7 @@
+ 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++;
+ }