summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2009-03-01 19:51:36 +0000
committerPatrick Lauer <patrick@gentoo.org>2009-03-01 19:51:36 +0000
commit314ef222df5a5202b24392855e03cf0b27db25aa (patch)
treefead7db9ada06c064851a3dceae8f52f35357af2 /net-fs/davfs2/files
parentRemove amd64 testing keyword on sys-kernel/hardened-sources-2.6.27-r8 (diff)
downloadgentoo-2-314ef222df5a5202b24392855e03cf0b27db25aa.tar.gz
gentoo-2-314ef222df5a5202b24392855e03cf0b27db25aa.tar.bz2
gentoo-2-314ef222df5a5202b24392855e03cf0b27db25aa.zip
Fix for gcc 4.3.3 / fortify_sources, closes #257823. Patch by <DarkNRG@gmx.de>
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-fs/davfs2/files')
-rw-r--r--net-fs/davfs2/files/fortify_sources_fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-fs/davfs2/files/fortify_sources_fix.patch b/net-fs/davfs2/files/fortify_sources_fix.patch
new file mode 100644
index 000000000000..ffc94153cf4d
--- /dev/null
+++ b/net-fs/davfs2/files/fortify_sources_fix.patch
@@ -0,0 +1,11 @@
+--- src/webdav.c.org 2009-02-14 21:30:12.600987622 +0100
++++ src/webdav.c 2009-02-14 21:33:33.020984549 +0100
+@@ -1513,7 +1513,7 @@
+
+ get_context *ctx = (get_context *) userdata;
+ if (ctx->fd == 0)
+- ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC);
++ ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
+ if (ctx->fd <= 0) {
+ ne_set_error(session, _("%i can't open cache file"), 0);
+ ctx->error = EIO;