Fix a creat() call, Daniel
This commit is contained in:
parent
7a3e1e4062
commit
cdf077aab6
19
creat.patch
Normal file
19
creat.patch
Normal file
@ -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);
|
@ -11,6 +11,7 @@ URL: http://xmlsoft.org/
|
|||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
Docdir: %{_docdir}
|
Docdir: %{_docdir}
|
||||||
Patch0: multilib.patch
|
Patch0: multilib.patch
|
||||||
|
Patch1: creat.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This library allows to manipulate XML files. It includes support
|
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
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
Loading…
Reference in New Issue
Block a user