Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/avfs/files: avfs-0.9.8-gcc43_fix_open_missing_mode.patch
Date: Sun, 01 Mar 2009 20:09:49
Message-Id: E1Ldryt-0001SS-Cl@stork.gentoo.org
1 patrick 09/03/01 20:09:47
2
3 Added: avfs-0.9.8-gcc43_fix_open_missing_mode.patch
4 Log:
5 Fix for gcc 4.3.3 / fortify_sources. Patch by Romain Perier.
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-fs/avfs/files/avfs-0.9.8-gcc43_fix_open_missing_mode.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/avfs/files/avfs-0.9.8-gcc43_fix_open_missing_mode.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/avfs/files/avfs-0.9.8-gcc43_fix_open_missing_mode.patch?rev=1.1&content-type=text/plain
13
14 Index: avfs-0.9.8-gcc43_fix_open_missing_mode.patch
15 ===================================================================
16 --- ../avfs-0.9.8_orig/modules/urar.c 2007-05-14 20:21:23.000000000 +0200
17 +++ modules/urar.c 2009-02-09 13:48:56.780225932 +0100
18 @@ -587,7 +587,7 @@
19 if(res < 0)
20 return res;
21
22 - fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC);
23 + fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644);
24 if(fd == -1) {
25 res = -errno;
26 av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile,