Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release-src > by-pkgid > d335cd06b3ecfded272ea61ee25c3580 > files > 5

libxml-1.8.17-18.mga1.src.rpm

diff -p -up libxml-1.8.17/nanohttp.c.orig libxml-1.8.17/nanohttp.c
--- libxml-1.8.17/nanohttp.c.orig	2008-05-29 13:36:57.000000000 -0300
+++ libxml-1.8.17/nanohttp.c	2008-05-29 13:37:45.000000000 -0300
@@ -1182,7 +1182,7 @@ xmlNanoHTTPSave(void *ctxt, const char *
     if (!strcmp(filename, "-")) 
         fd = 0;
     else {
-        fd = open(filename, O_CREAT | O_WRONLY);
+        fd = open(filename, O_CREAT | O_WRONLY, 00644);
 	if (fd < 0) {
 	    xmlNanoHTTPClose(ctxt);
 	    return(-1);