$OpenBSD: patch-gcc_collect2_c,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
--- gcc/collect2.c.orig	Mon Dec  8 20:02:39 2003
+++ gcc/collect2.c	Mon Jan  3 10:17:41 2005
@@ -1572,7 +1572,7 @@ collect_execute (prog, argv, redir)
   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.  */
