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/2.95.3/gentoo: 16_all_gcc-open-perms.patch
Date: Sat, 29 Dec 2012 06:47:54
Message-Id: 20121229064736.6C4B72171D@flycatcher.gentoo.org
1 vapier 12/12/29 06:47:36
2
3 Added: 16_all_gcc-open-perms.patch
4 Log:
5 fix missing perms to open(O_CREAT)
6
7 Revision Changes Path
8 1.1 src/patchsets/gcc/2.95.3/gentoo/16_all_gcc-open-perms.patch
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/2.95.3/gentoo/16_all_gcc-open-perms.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/2.95.3/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. */