summaryrefslogtreecommitdiff
path: root/meta/packages/libxml/files
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2008-10-31 15:20:31 +0000
committerJoshua Lock <josh@linux.intel.com>2008-10-31 15:25:24 +0000
commit25e5b72195a61cbb1bbbc3cbd3061fe570861d4c (patch)
tree01798dc535afe2d1a3aeec3756383f71d13c03c2 /meta/packages/libxml/files
parent17bb6733b9c7c357191477475dca1a1359ca0fae (diff)
downloadopenembedded-core-25e5b72195a61cbb1bbbc3cbd3061fe570861d4c.tar.gz
openembedded-core-25e5b72195a61cbb1bbbc3cbd3061fe570861d4c.tar.bz2
openembedded-core-25e5b72195a61cbb1bbbc3cbd3061fe570861d4c.tar.xz
openembedded-core-25e5b72195a61cbb1bbbc3cbd3061fe570861d4c.zip
libxml2: Fix a compilation error when using -D_FORTIFY_SOURCE=2 thanks Chenglan Huang
Diffstat (limited to 'meta/packages/libxml/files')
-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 000000000..550e036db
--- /dev/null
+++ b/meta/packages/libxml/files/libxml-nanohttp.patch
@@ -0,0 +1,13 @@
+Index: libxml2-2.6.29/nanohttp.c
+===================================================================
+--- libxml2-2.6.29.orig/nanohttp.c 2008-10-30 10:12:11.000000000 +0800
++++ libxml2-2.6.29/nanohttp.c 2008-10-30 10:12:30.000000000 +0800
+@@ -1585,7 +1585,7 @@
+ if (!strcmp(filename, "-"))
+ fd = 0;
+ else {
+- fd = open(filename, O_CREAT | O_WRONLY);
++ fd = open(filename, O_CREAT | O_WRONLY, 0644);
+ if (fd < 0) {
+ xmlNanoHTTPClose(ctxt);
+ return(-1);