From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/libffi/files: libffi-3.0.9-strncmp.patch |
Date: | Fri, 04 Feb 2011 18:40:42 |
Message-Id: | 20110204184032.B56CD20054@flycatcher.gentoo.org |
1 | ssuominen 11/02/04 18:40:32 |
2 | |
3 | Added: libffi-3.0.9-strncmp.patch |
4 | Log: |
5 | Backport upstream patch for strncmp usage bug by request from Arfrever Frehtes Taifersar Arahesis. Use EAPI=2. This will effectively kill upgrade path from older systems since it's a depend for dev-lang/python and thus portage. But python ebuilds are newer EAPIs too, so we don't care anymore. |
6 | |
7 | (Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/libffi/files/libffi-3.0.9-strncmp.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.0.9-strncmp.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libffi/files/libffi-3.0.9-strncmp.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: libffi-3.0.9-strncmp.patch |
16 | =================================================================== |
17 | src/closures.c (selinux_enabled_check): Fix strncmp usage bug. |
18 | |
19 | http://github.com/atgreen/libffi/commit/eaf444eabc4c78703c0f98ac0197b1619c1b1bef |
20 | |
21 | --- src/closures.c |
22 | +++ src/closures.c |
23 | @@ -146,7 +146,7 @@ |
24 | p = strchr (p + 1, ' '); |
25 | if (p == NULL) |
26 | break; |
27 | - if (strncmp (p + 1, "selinuxfs ", 10) != 0) |
28 | + if (strncmp (p + 1, "selinuxfs ", 10) == 0) |
29 | { |
30 | free (buf); |
31 | fclose (f); |