diff --git a/creat.patch b/creat.patch new file mode 100644 index 0000000..b41ef30 --- /dev/null +++ b/creat.patch @@ -0,0 +1,19 @@ +*** nanohttp.c.orig 2007-08-23 22:28:31.000000000 +0200 +--- nanohttp.c 2007-08-23 22:28:51.000000000 +0200 +*************** xmlNanoHTTPSave(void *ctxt, const char * +*** 1585,1591 **** + if (!strcmp(filename, "-")) + fd = 0; + else { +! fd = open(filename, O_CREAT | O_WRONLY); + if (fd < 0) { + xmlNanoHTTPClose(ctxt); + return(-1); +--- 1585,1591 ---- + if (!strcmp(filename, "-")) + fd = 0; + else { +! fd = open(filename, O_CREAT | O_WRONLY, 0666); + if (fd < 0) { + xmlNanoHTTPClose(ctxt); + return(-1); diff --git a/libxml2.spec b/libxml2.spec index 7045c89..9a67a91 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -11,6 +11,7 @@ URL: http://xmlsoft.org/ Prefix: %{_prefix} Docdir: %{_docdir} Patch0: multilib.patch +Patch1: creat.patch %description This library allows to manipulate XML files. It includes support @@ -60,6 +61,7 @@ at parse time or later once the document has been modified. %prep %setup -q %patch0 -p1 +%patch1 -p0 %build %configure