Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/davfs2/files: fortify_sources_fix.patch
Date: Sun, 01 Mar 2009 19:51:38
Message-Id: E1LdrhI-0000ek-Ke@stork.gentoo.org
1 patrick 09/03/01 19:51:36
2
3 Added: fortify_sources_fix.patch
4 Log:
5 Fix for gcc 4.3.3 / fortify_sources, closes #257823. Patch by <DarkNRG@×××.de>
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-fs/davfs2/files/fortify_sources_fix.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/davfs2/files/fortify_sources_fix.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/davfs2/files/fortify_sources_fix.patch?rev=1.1&content-type=text/plain
13
14 Index: fortify_sources_fix.patch
15 ===================================================================
16 --- src/webdav.c.org 2009-02-14 21:30:12.600987622 +0100
17 +++ src/webdav.c 2009-02-14 21:33:33.020984549 +0100
18 @@ -1513,7 +1513,7 @@
19
20 get_context *ctx = (get_context *) userdata;
21 if (ctx->fd == 0)
22 - ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC);
23 + ctx->fd = open(ctx->file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
24 if (ctx->fd <= 0) {
25 ne_set_error(session, _("%i can't open cache file"), 0);
26 ctx->error = EIO;