libxml2/creat.patch
2007-08-23 20:31:10 +00:00

20 lines
576 B
Diff

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