+2013-05-17 Bykov Aleksey <gnfalex@rambler.ru>
+
+ * bootstrap: Add `mkostemp'
+
2012-10-07 Giuseppe Scrivano <gscrivano@gnu.org>
* configure.ac: Check for patchconf.
mbtowc
mkdir
mkstemp
+mkostemp
crypto/md5
crypto/sha1
pipe
+2013-05-14 Bykov Aleksey <gnfalex@rambler.ru>
+
+ * warc.c (warc_tempfile): For fix "Could not open temporary WARC manifest
+ file." issue in Win system force to use `mkostemp(filename, O_TEMPORARY)'
+ instead of `mkstemp(filename)'. Thank to Angel Gonzalez for help.
+
2013-05-14 Tim Ruehsen <tim.ruehsen@gmx.de>
* cookies.c (cookie_jar_load): Replaced read_whole_file() by getline().
#ifndef WINDOWS
#include <libgen.h>
+#else
+#include <fcntl.h>
#endif
#include "warc.h"
+#ifndef O_TEMPORARY
+#define O_TEMPORARY 0
+#endif
+
extern char *version_string;
/* Set by main in main.c */
if (path_search (filename, 100, opt.warc_tempdir, "wget", true) == -1)
return NULL;
- int fd = mkstemp (filename);
+ int fd = mkostemp (filename, O_TEMPORARY);
if (fd < 0)
return NULL;
+#if !O_TEMPORARY
if (unlink (filename) < 0)
return NULL;
+#endif
+
return fdopen (fd, "wb+");
}