openbsd-ports/print/htmldoc/patches/patch-htmldoc_file_c
ajacoutot 484f8a379b - add a no_x11 FLAVOR
- don't force -Os optimisation
- respect ${CXXFLAGS}
- regen patches

from aanriot@ with some tweaks by myself, ok aanriot@
2007-05-02 18:34:00 +00:00

31 lines
865 B
Plaintext

$OpenBSD: patch-htmldoc_file_c,v 1.4 2007/05/02 18:34:00 ajacoutot Exp $
--- htmldoc/file.c.orig Wed May 31 21:00:02 2006
+++ htmldoc/file.c Wed May 2 16:56:21 2007
@@ -78,7 +78,7 @@
# define OPENPERM (_S_IREAD | _S_IWRITE)
#else
# define TEMPLATE "%s/%06ld.%06d.tmp"
-# define OPENMODE (O_CREAT | O_RDWR | O_EXCL | O_TRUNC)
+# define OPENMODE (O_CREAT | O_RDWR | O_EXCL)
# define OPENPERM 0600
#endif /* WIN32 */
@@ -176,7 +176,7 @@ file_cleanup(void)
}
#else
if ((tmpdir = getenv("TMPDIR")) == NULL)
- tmpdir = "/var/tmp";
+ tmpdir = "/tmp";
#endif /* WIN32 */
/*
@@ -1097,7 +1097,7 @@ file_temp(char *name, /* O - Filename */
}
#else
if ((tmpdir = getenv("TMPDIR")) == NULL)
- tmpdir = "/var/tmp";
+ tmpdir = "/tmp";
#endif /* WIN32 */
snprintf(name, (size_t)len, TEMPLATE, tmpdir, (long)getpid(), web_files);