diff options
| author | SADA Kenji <sada@FreeBSD.org> | 2000-07-06 14:15:53 +0000 |
|---|---|---|
| committer | SADA Kenji <sada@FreeBSD.org> | 2000-07-06 14:15:53 +0000 |
| commit | cf2c8ec84737a1bc1efb5f13e23c06767bc9f181 (patch) | |
| tree | 9f07aaf20f8fdbb342ed19a80ac5b5362eabec25 /security/tripwire-131/files/patch-bb | |
| parent | 42cae078234ffc362c2c8b67b56a0a9311a8e45f (diff) | |
Upgrade to 1.3.1, beta version.
PR: 18964
Submitted by: Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
Diffstat (limited to 'security/tripwire-131/files/patch-bb')
| -rw-r--r-- | security/tripwire-131/files/patch-bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/security/tripwire-131/files/patch-bb b/security/tripwire-131/files/patch-bb new file mode 100644 index 000000000000..8cc8988284fb --- /dev/null +++ b/security/tripwire-131/files/patch-bb @@ -0,0 +1,32 @@ +--- src/dbase.build.c.orig Tue May 4 17:31:00 1999 ++++ src/dbase.build.c Tue Jun 13 23:40:06 2000 +@@ -60,7 +60,6 @@ + int files_scanned_num = 0; + + /* prototypes */ +-char *mktemp(); + + /* new database checking routines */ + static void database_record_write(); +@@ -135,8 +134,8 @@ + die_with_err("malloc() failed in database_build", (char *) NULL); + (void) strcpy(tmpfilename, TEMPFILE_TEMPLATE); + +- if ((char *) mktemp(tmpfilename) == NULL) +- die_with_err("database_build: mktemp()", (char *) NULL); ++ if (mkstemp(tmpfilename) == -1) ++ die_with_err("database_build: mkstemp()", (char *) NULL); + + (void) strcpy(tempdatabase_file, tmpfilename); + (void) strcpy(database, tempdatabase_file); +@@ -814,8 +813,8 @@ + /* build temporary file name */ + (void) strcpy(backup_name, TEMPFILE_TEMPLATE); + +- if ((char *) mktemp(backup_name) == NULL) { +- die_with_err("copy_database_to_backup: mktemp() failed!", NULL); ++ if (mkstemp(backup_name) == -1) { ++ die_with_err("copy_database_to_backup: mkstemp() failed!", NULL); + } + + strcpy (database_backupfile, backup_name); |
