openbsd-ports/print/htmldoc/patches/patch-htmldoc_file_c
avsm c3686a4064 initial import of htmldoc-1.8.11
--
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.
2001-02-21 23:31:31 +00:00

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
{