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);