c3686a4064
-- HTMLDOC was developed in response to a need to generate high quality documentation in printed and electronic forms. It converts source HTML documentation into PDF and Postscript form, and has a GUI and CLI front-end to accomplish this.
18 lines
655 B
Plaintext
18 lines
655 B
Plaintext
$OpenBSD: patch-htmldoc_file_c,v 1.1.1.1 2001/02/21 23:31:31 avsm Exp $
|
|
--- htmldoc/file.c.orig Tue Feb 13 10:31:16 2001
|
|
+++ htmldoc/file.c Wed Feb 21 21:53:19 2001
|
|
@@ -410,11 +410,11 @@ file_find(const char *path, /* I - Path
|
|
GetCurrentProcessId(), web_files);
|
|
#else
|
|
if ((tmpdir = getenv("TMPDIR")) == NULL)
|
|
- tmpdir = "/var/tmp";
|
|
+ tmpdir = "/tmp";
|
|
|
|
snprintf(filename, sizeof(filename), "%s/%06d.%06d", tmpdir, web_files,
|
|
getpid());
|
|
- if ((fd = open(filename, O_CREAT | O_EXCL | O_TRUNC, 0600)) >= 0)
|
|
+ if ((fd = open(filename, O_CREAT | O_EXCL , 0600)) != -1)
|
|
close(fd);
|
|
else
|
|
{
|