Restore execute permissions
[platform/upstream/libffi.git] / patches / selinux
1 Index: libffi/ChangeLog
2 ===================================================================
3 --- libffi.orig/ChangeLog
4 +++ libffi/ChangeLog
5 @@ -1,3 +1,7 @@
6 +2010-07-10  Evan Phoenix  <evan@fallingsnow.net>
7 +
8 +       * src/closures.c (selinux_enabled_check): Fix strncmp usage bug.
9 +
10  2010-05-05  Michael Kohler <michaelkohler@live.com>
11  
12         * src/dlmalloc.c (dlfree): Fix spelling.
13 Index: libffi/src/closures.c
14 ===================================================================
15 --- libffi.orig/src/closures.c
16 +++ libffi/src/closures.c
17 @@ -146,7 +146,7 @@ selinux_enabled_check (void)
18        p = strchr (p + 1, ' ');
19        if (p == NULL)
20          break;
21 -      if (strncmp (p + 1, "selinuxfs ", 10) != 0)
22 +      if (strncmp (p + 1, "selinuxfs ", 10) == 0)
23          {
24            free (buf);
25            fclose (f);