summaryrefslogtreecommitdiffstats
path: root/meta/packages/libxml/files/libxml-nanohttp.patch
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2008-10-31 15:20:31 +0000
committerMarcin Juszkiewicz <marcin@buglabs.net>2009-07-28 09:30:10 +0200
commit961589f1a43f938d30b4f8f2ce79c9710edaf58b (patch)
tree4dd8022dad0c40c1cbdc6dbe4b13ca205d9b9c86 /meta/packages/libxml/files/libxml-nanohttp.patch
parent99e4fde8fc6d720a591c90a0925ca8e38bad059b (diff)
downloadpoky-961589f1a43f938d30b4f8f2ce79c9710edaf58b.tar.gz
libxml2: Fix a compilation error when using -D_FORTIFY_SOURCE=2 thanks Chenglan Huang
Diffstat (limited to 'meta/packages/libxml/files/libxml-nanohttp.patch')
-rw-r--r--meta/packages/libxml/files/libxml-nanohttp.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/packages/libxml/files/libxml-nanohttp.patch b/meta/packages/libxml/files/libxml-nanohttp.patch
new file mode 100644
index 0000000000..550e036db3
--- /dev/null
+++ b/meta/packages/libxml/files/libxml-nanohttp.patch
@@ -0,0 +1,13 @@
1Index: libxml2-2.6.29/nanohttp.c
2===================================================================
3--- libxml2-2.6.29.orig/nanohttp.c 2008-10-30 10:12:11.000000000 +0800
4+++ libxml2-2.6.29/nanohttp.c 2008-10-30 10:12:30.000000000 +0800
5@@ -1585,7 +1585,7 @@
6 if (!strcmp(filename, "-"))
7 fd = 0;
8 else {
9- fd = open(filename, O_CREAT | O_WRONLY);
10+ fd = open(filename, O_CREAT | O_WRONLY, 0644);
11 if (fd < 0) {
12 xmlNanoHTTPClose(ctxt);
13 return(-1);