1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/security/tripwire-131/files/patch-bd
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

14 lines
349 B
Plaintext

--- 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);
}