summaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/3.4.6/950-open_ocreat_mode.patch
blob: 5dba9055217be019d3ea5d803ed9d42efeeb2cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- gcc-3.4.6/gcc/collect2.c.orig	2009-05-11 13:00:31.000000000 -0600
+++ gcc-3.4.6/gcc/collect2.c	2009-05-11 13:00:26.000000000 -0600
@@ -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, O_RDWR);
 
       /* Duplicate the stdout and stderr file handles
 	 so they can be restored later.  */