Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.0.4/gentoo: 16_all_gcc-open-perms.patch
Date: Sun, 01 Mar 2009 20:43:44
Message-Id: E1LdsVh-0002PL-Rj@stork.gentoo.org
1 vapier 09/03/01 20:43:41
2
3 Added: 16_all_gcc-open-perms.patch
4 Log:
5 add the open() fix to 4.0 branch too #260296
6
7 Revision Changes Path
8 1.1 src/patchsets/gcc/4.0.4/gentoo/16_all_gcc-open-perms.patch
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.0.4/gentoo/16_all_gcc-open-perms.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.0.4/gentoo/16_all_gcc-open-perms.patch?rev=1.1&content-type=text/plain
12
13 Index: 16_all_gcc-open-perms.patch
14 ===================================================================
15 Provide required permissions for newly created file.
16 Call only used for temporary ldout file, thus using mode 0600.
17
18 https://bugs.gentoo.org/256638
19
20 2009-01-30 Martin von Gagern
21
22 --- gcc-3.4.6/gcc/collect2.c
23 +++ gcc-3.4.6/gcc/collect2.c
24 @@ -1540,7 +1540,7 @@ collect_execute (const char *prog, char
25 if (redir)
26 {
27 /* Open response file. */
28 - redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
29 + redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR);
30
31 /* Duplicate the stdout and stderr file handles
32 so they can be restored later. */