summaryrefslogtreecommitdiff
path: root/security/tripwire-131/files/patch-src-utils.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 14:30:10 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 14:30:10 +0000
commit1c30911ff0463c1215e15dd9f7acb886ca35a93d (patch)
tree17783a29eefdfe8b1d45e4895ff0daaf7f6e92c3 /security/tripwire-131/files/patch-src-utils.c
parent- Update to 2.4.3 (diff)
Rename security/ patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363328
Diffstat (limited to 'security/tripwire-131/files/patch-src-utils.c')
-rw-r--r--security/tripwire-131/files/patch-src-utils.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/tripwire-131/files/patch-src-utils.c b/security/tripwire-131/files/patch-src-utils.c
new file mode 100644
index 000000000000..3b025e3b07ce
--- /dev/null
+++ b/security/tripwire-131/files/patch-src-utils.c
@@ -0,0 +1,13 @@
+--- src/utils.c.orig Tue Jun 13 23:43:01 2000
++++ src/utils.c Tue Jun 13 23:43:50 2000
+@@ -856,8 +856,8 @@
+ int fd;
+
+ (void) strcpy(tmp, TEMPFILE_TEMPLATE);
+- if ((char *) mktemp(tmp) == NULL) {
+- perror("tempfilename_generate: mktemp()");
++ if (mkstemp(tmp) == -1) {
++ perror("tempfilename_generate: mkstemp()");
+ exit(1);
+ }
+