summaryrefslogtreecommitdiff
path: root/recipes/gcc/files/gcc-posix-open-fix.patch
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-05-25 09:54:29 +0200
committerStefan Schmidt <stefan@datenfreihafen.org>2009-05-25 09:54:29 +0200
commit99dd85f176d8dbc1f81ed96b8bd2409ba3dbcd32 (patch)
tree20e0735f73d2a422f75fcb6bf408efd2bd14d0c1 /recipes/gcc/files/gcc-posix-open-fix.patch
parent8ef37e61f2e2db01d32dd6ec9a89202e973dddc8 (diff)
parent8ce0d1274b868674c997ef52b1c8753c033a8a08 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/gcc/files/gcc-posix-open-fix.patch')
-rw-r--r--recipes/gcc/files/gcc-posix-open-fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/gcc/files/gcc-posix-open-fix.patch b/recipes/gcc/files/gcc-posix-open-fix.patch
new file mode 100644
index 0000000000..99f813e866
--- /dev/null
+++ b/recipes/gcc/files/gcc-posix-open-fix.patch
@@ -0,0 +1,11 @@
+--- gcc-3.4.6/gcc/collect2.c 2008-10-04 18:17:17.796750393 +0400
++++ gcc-3.4.6/gcc/collect2.new 2008-10-04 18:24:10.120748711 +0400
+@@ -1534,7 +1534,7 @@ collect_execute (const char *prog, char
+ 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, S_IWUSR);
+
+ /* Duplicate the stdout and stderr file handles
+ so they can be restored later. */