From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-util/oprofile/files: oprofile-1.0.0-opjitconv-open.patch |
Date: | Mon, 09 Feb 2015 07:55:36 |
Message-Id: | 20150209075530.93F3C1160D@oystercatcher.gentoo.org |
1 | jer 15/02/09 07:55:30 |
2 | |
3 | Added: oprofile-1.0.0-opjitconv-open.patch |
4 | Log: |
5 | Fix opjitconv open() flag (bug #538788). |
6 | |
7 | (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/oprofile/files/oprofile-1.0.0-opjitconv-open.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: oprofile-1.0.0-opjitconv-open.patch |
16 | =================================================================== |
17 | --- a/opjitconv/opjitconv.c |
18 | +++ b/opjitconv/opjitconv.c |
19 | @@ -216,7 +216,7 @@ |
20 | int file_locked = 0; |
21 | unsigned int usecs_waited = 0; |
22 | int rc = OP_JIT_CONV_OK; |
23 | - int fd = open(dumpfile, S_IRUSR); |
24 | + int fd = open(dumpfile, O_RDONLY); |
25 | if (fd < 0) { |
26 | perror("opjitconv failed to open JIT dumpfile"); |
27 | return OP_JIT_CONV_FAIL; |