Fix selinux test
This commit is contained in:
25
patches/selinux
Normal file
25
patches/selinux
Normal file
@@ -0,0 +1,25 @@
|
||||
Index: libffi/ChangeLog
|
||||
===================================================================
|
||||
--- libffi.orig/ChangeLog
|
||||
+++ 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-05-05 Michael Kohler <michaelkohler@live.com>
|
||||
|
||||
* src/dlmalloc.c (dlfree): Fix spelling.
|
||||
Index: libffi/src/closures.c
|
||||
===================================================================
|
||||
--- libffi.orig/src/closures.c
|
||||
+++ 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);
|
||||
@@ -7,3 +7,4 @@ msvcc-warning
|
||||
remove-warnings
|
||||
os2
|
||||
spelling
|
||||
selinux
|
||||
|
||||
Reference in New Issue
Block a user