diff options
author | Jonas Bonn <jonas.bonn@gmail.com> | 2008-12-06 18:19:34 -0500 |
---|---|---|
committer | Tom Rini <trini@embeddedalley.com> | 2008-12-06 18:19:34 -0500 |
commit | 654ede98b91d54f1cae410898921ba52545be200 (patch) | |
tree | b57e8ad5e4a8bfe3d7337a3fbb910f9534d67d64 /packages/gcc/gcc-3.4.6 | |
parent | a633365b0f23b8f9baa551c0c02e6ce4d96ee9c7 (diff) |
gcc, gcc-native 3.4.6 : Fix O_CREAT permissions for -D_FORTIFY_SOURCE
On Ubuntu Intrepid, -D_FORTIFY_SOURCE is enabled by default, thus
requiring file permissions when the O_CREAT flag is set on open. This
patch remedies this for gcc-3.4.6.
Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
Diffstat (limited to 'packages/gcc/gcc-3.4.6')
-rw-r--r-- | packages/gcc/gcc-3.4.6/O_CREAT-perms.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/gcc/gcc-3.4.6/O_CREAT-perms.patch b/packages/gcc/gcc-3.4.6/O_CREAT-perms.patch new file mode 100644 index 0000000000..1c3af2e021 --- /dev/null +++ b/packages/gcc/gcc-3.4.6/O_CREAT-perms.patch @@ -0,0 +1,11 @@ +--- gcc-3.4.6/gcc/collect2.c.orig 2008-10-20 14:47:56.000000000 +0200 ++++ gcc-3.4.6/gcc/collect2.c 2008-10-20 14:48:49.000000000 +0200 +@@ -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, 0644); + + /* Duplicate the stdout and stderr file handles + so they can be restored later. */ |