Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-benchmarks/contest/files: contest-fortify_sources.patch
Date: Mon, 02 Mar 2009 00:20:35
Message-Id: E1LdvtY-00084x-P5@stork.gentoo.org
1 patrick 09/03/02 00:20:32
2
3 Added: contest-fortify_sources.patch
4 Log:
5 Fix for gcc 4.3.3 / fortify_sources. Adding ~amd64 keyword. Patch by Magnus Granberg. Closes #260451
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 app-benchmarks/contest/files/contest-fortify_sources.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/contest/files/contest-fortify_sources.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-benchmarks/contest/files/contest-fortify_sources.patch?rev=1.1&content-type=text/plain
13
14 Index: contest-fortify_sources.patch
15 ===================================================================
16 --- bmark.c 2009-02-27 23:13:44.000000000 +0000
17 +++ bmark.c 2009-02-27 23:12:44.000000000 +0000
18 @@ -47,7 +47,7 @@
19 }
20 /* child */
21
22 - if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC))==-1){
23 + if((tmpfd=open(TMP_FILE, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR))==-1){
24 printsys("Could not open temporary file\n");
25 }
26 if(dup2(tmpfd, TMP_FD)==-1){