Gentoo Archives: gentoo-commits

From: "Joseph Jezak (josejx)" <josejx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/librtas/files: librtas-1.3.3-open.patch
Date: Mon, 01 Feb 2010 15:48:16
Message-Id: E1NbyVW-0003V6-Ro@stork.gentoo.org
1 josejx 10/02/01 15:48:10
2
3 Added: librtas-1.3.3-open.patch
4 Log:
5 Added patch to fix compilation on stable machines. Added latest version.
6 (Portage version: 2.1.7.16/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sys-libs/librtas/files/librtas-1.3.3-open.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/librtas/files/librtas-1.3.3-open.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/librtas/files/librtas-1.3.3-open.patch?rev=1.1&content-type=text/plain
13
14 Index: librtas-1.3.3-open.patch
15 ===================================================================
16 --- librtas_src/syscall_rmo.bak 2010-02-01 10:38:01.000000000 -0500
17 +++ librtas-1.3.3/librtas_src/syscall_rmo.c 2010-02-01 10:38:25.000000000 -0500
18 @@ -117,7 +117,7 @@
19
20 /* Lazily open lock file */
21 if (wa_config.lockfile_fd < 0) {
22 - wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR);
23 + wa_config.lockfile_fd = open(lockfile_path, O_CREAT | O_RDWR, 644);
24 if (wa_config.lockfile_fd < 0) {
25 dbg1("could not open lockfile %s\n", lockfile_path);
26 return RTAS_IO_ASSERT;
27 --- librtas_src/common.bak 2010-02-01 10:37:34.000000000 -0500
28 +++ librtas-1.3.3/librtas_src/common.c 2010-02-01 10:37:50.000000000 -0500
29 @@ -65,7 +65,7 @@
30 npaths = sizeof(proc_rtas_paths) / sizeof(char *);
31 for (i = 0; i < npaths; i++) {
32 sprintf(full_name, "%s/%s", proc_rtas_paths[i], name);
33 - fd = open(full_name, mode);
34 + fd = open(full_name, mode, 644);
35 if (fd >= 0)
36 break;
37 }