rpms/libxml2/devel creat.patch,NONE,1.1 libxml2.spec,1.47,1.48

Daniel Veillard (veillard) fedora-extras-commits at redhat.com
Thu Aug 23 20:31:42 UTC 2007


Author: veillard

Update of /cvs/pkgs/rpms/libxml2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26739

Modified Files:
	libxml2.spec 
Added Files:
	creat.patch 
Log Message:
Fix a creat() call, Daniel


creat.patch:

--- NEW FILE creat.patch ---
*** 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);


Index: libxml2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libxml2/devel/libxml2.spec,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- libxml2.spec	23 Aug 2007 15:18:58 -0000	1.47
+++ libxml2.spec	23 Aug 2007 20:31:10 -0000	1.48
@@ -11,6 +11,7 @@
 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 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p0
 
 %build
 %configure




More information about the fedora-extras-commits mailing list