From: | "Christian Faulhammer (fauli)" <fauli@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/einit/files: einit-0.40.0-open_mode.patch |
Date: | Thu, 12 Mar 2009 00:50:08 |
Message-Id: | E1LhZ7e-00026v-A5@stork.gentoo.org |
1 | fauli 09/03/12 00:50:06 |
2 | |
3 | Added: einit-0.40.0-open_mode.patch |
4 | Log: |
5 | fix compile failure with _FORTIFY_SOURCE=2, patch by Magnus Granberg <zorry AT ume DOT nu> in bug 261320 |
6 | (Portage version: 2.1.6.7/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-apps/einit/files/einit-0.40.0-open_mode.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/einit/files/einit-0.40.0-open_mode.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/einit/files/einit-0.40.0-open_mode.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: einit-0.40.0-open_mode.patch |
15 | =================================================================== |
16 | --- src/modules/linux/linux-urandom.c 2008-02-25 22:13:55.000000000 +0000 |
17 | +++ src/modules/linux/linux-urandom.c 2009-03-10 22:54:50.000000000 +0000 |
18 | @@ -59,7 +59,7 @@ |
19 | |
20 | int from_fd = open(from, O_RDONLY); |
21 | if (from_fd) { |
22 | - int to_fd = open(to, O_WRONLY | O_CREAT); |
23 | + int to_fd = open(to, O_WRONLY | O_CREAT, 0644); |
24 | if (to_fd) { |
25 | char buffer[s]; |
26 | memset (buffer, 0, s); |