aboutsummaryrefslogtreecommitdiff
path: root/security/tripwire-131/files/patch-src-siggen.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tripwire-131/files/patch-src-siggen.c')
-rw-r--r--security/tripwire-131/files/patch-src-siggen.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/security/tripwire-131/files/patch-src-siggen.c b/security/tripwire-131/files/patch-src-siggen.c
new file mode 100644
index 000000000000..8bc36ac70a0e
--- /dev/null
+++ b/security/tripwire-131/files/patch-src-siggen.c
@@ -0,0 +1,21 @@
+--- src/siggen.c.orig Tue Jun 13 23:42:53 2000
++++ src/siggen.c Tue Jun 13 23:43:27 2000
+@@ -52,7 +52,6 @@
+
+ extern int optind;
+ int debuglevel = 0;
+-char *mktemp();
+
+ int (*pf_signatures [NUM_SIGS]) () = {
+ SIG0FUNC,
+@@ -172,8 +171,8 @@
+ };
+ (void) strcpy(tmpfilename, "/tmp/twzXXXXXX");
+
+- if ((char *) mktemp(tmpfilename) == NULL) {
+- perror("siggen: mktemp()");
++ if (mkstemp(tmpfilename) == -1) {
++ perror("siggen: mkstemp()");
+ exit(1);
+ }
+