summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-06 05:40:15 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-06 05:40:15 +0000
commitb4521bf13e9e9e5c587eec12b280af9181136fe8 (patch)
treee6fe7ed2638316cd1b54944374428d522ecdcc32 /libffi
parente243b8a7ea4fe19bfc714c08f777505e0bf54e4d (diff)
downloadgcc-b4521bf13e9e9e5c587eec12b280af9181136fe8.tar.gz
Fix SELinux test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog4
-rw-r--r--libffi/src/closures.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 8cf0b9a3eb9..e3f9aabab20 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-10 Evan Phoenix <evan@fallingsnow.net>
+
+ * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
+
2010-07-07 Neil Roberts <neil@linux.intel.com>
* src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to
diff --git a/libffi/src/closures.c b/libffi/src/closures.c
index 0b156e0f00d..124ed446206 100644
--- a/libffi/src/closures.c
+++ b/libffi/src/closures.c
@@ -146,7 +146,7 @@ selinux_enabled_check (void)
p = strchr (p + 1, ' ');
if (p == NULL)
break;
- if (strncmp (p + 1, "selinuxfs ", 10) != 0)
+ if (strncmp (p + 1, "selinuxfs ", 10) == 0)
{
free (buf);
fclose (f);