fix an open() call with creation without 3rd argument hopefully that
* nanohttp.c: fix an open() call with creation without 3rd argument
hopefully that interface is never used.
Daniel
svn path=/trunk/; revision=3656
diff --git a/ChangeLog b/ChangeLog
index b3481f4..fa9d17b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 23 22:48:20 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+ * nanohttp.c: fix an open() call with creation without 3rd argument
+ hopefully that interface is never used.
+
Thu Aug 23 17:00:49 CEST 2007 Daniel Veillard <daniel@veillard.com>
* configure.in doc/*: preparing release of 2.6.30
diff --git a/NEWS b/NEWS
index d28eb99..89c3e2e 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,19 @@
to the SVN at
http://svn.gnome.org/viewcvs/libxml2/trunk/
code base.Here is the list of public releases:
+2.6.30: Aug 23 2007:
+ - Portability: Solaris crash on error handling, windows path fixes
+ (Roland Schwarz and Rob Richards), mingw build (Roland Schwarz)
+ - Bugfixes: xmlXPathNodeSetSort problem (William Brack), leak when
+ reusing a writer for a new document (Dodji Seketeli), Schemas
+ xsi:nil handling patch (Frank Gross), relative URI build problem
+ (Patrik Fimml), crash in xmlDocFormatDump, invalid char in comment
+ detection bug, fix disparity with xmlSAXUserParseMemory, automata
+ generation for complex regexp counts problems, Schemas IDC import
+ problems (Frank Gross), xpath predicate evailation error handling
+ (William Brack)
+
+
2.6.29: Jun 12 2007:
- Portability: patches from Andreas Stricke for WinCEi,
fix compilation warnings (William Brack), avoid warnings on Apple OS/X
diff --git a/nanohttp.c b/nanohttp.c
index 2406e7e..e7b601a 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -1585,7 +1585,7 @@
if (!strcmp(filename, "-"))
fd = 0;
else {
- fd = open(filename, O_CREAT | O_WRONLY);
+ fd = open(filename, O_CREAT | O_WRONLY, 0666);
if (fd < 0) {
xmlNanoHTTPClose(ctxt);
return(-1);