1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/security/tripwire-131/files/patch-ba
SADA Kenji cf2c8ec847 Upgrade to 1.3.1, beta version.
PR:	18964
Submitted by:	Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
2000-07-06 14:15:53 +00:00

22 lines
488 B
Plaintext

--- src/config.parse.c.orig Tue Jun 13 23:24:14 2000
+++ src/config.parse.c Tue Jun 13 23:30:35 2000
@@ -55,7 +55,6 @@
#endif
/* prototypes */
-char *mktemp();
static void configfile_descend();
#ifndef L_tmpnam
@@ -105,8 +104,8 @@
};
(void) strcpy(tmpfilename, TEMPFILE_TEMPLATE);
- if ((char *) mktemp(tmpfilename) == NULL) {
- perror("configfile_read: mktemp()");
+ if (mkstemp(tmpfilename) == -1) {
+ perror("configfile_read: mkstemp()");
exit(1);
}