From 8631068d69ec9f018fafaba2f378141de50654f5 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 6 May 2009 02:54:57 +0000 Subject: Fix missing mode in O_CREAT git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1753 42af7a65-404d-4744-a932-0658087f49c3 --- .../toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch (limited to 'misc/buildroot/toolchain') diff --git a/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch b/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch new file mode 100644 index 000000000..d6d7c1a8d --- /dev/null +++ b/misc/buildroot/toolchain/gcc/3.4.6/910-gcc-3.4.6-ocreatmode.patch @@ -0,0 +1,12 @@ +diff -u gcc-3.4.6/gcc/collect2.c.orig gcc-3.4.6/gcc/collect2.c +--- gcc-3.4.6/gcc/collect2.c.orig 2009-05-05 20:37:56.000000000 -0600 ++++ gcc-3.4.6/gcc/collect2.c 2009-05-05 20:39:06.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, 0666); + + /* Duplicate the stdout and stderr file handles + so they can be restored later. */ -- cgit v1.2.3