summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-3.4.4/hrw-open-needs-3-args.patch
blob: 8feb5edff09383caa1f9258bacf6bfaec206b128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: gcc-3.4.4/gcc/collect2.c
===================================================================
--- gcc-3.4.4.orig/gcc/collect2.c	2009-11-02 20:40:02.874934378 +0100
+++ gcc-3.4.4/gcc/collect2.c	2009-11-02 20:41:12.458939528 +0100
@@ -1534,7 +1534,7 @@
   if (redir)
     {
       /* Open response file.  */
-      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
 
       /* Duplicate the stdout and stderr file handles
 	 so they can be restored later.  */