From 13bc72f76affd022e848142af132e9ad48252bc9 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Apr 22 2013 14:29:48 +0000 Subject: - Fix test suite to build --- diff --git a/libsemanage-rhat.patch b/libsemanage-rhat.patch index 2dba8de..132fc4d 100644 --- a/libsemanage-rhat.patch +++ b/libsemanage-rhat.patch @@ -1,3 +1,18 @@ +diff --git a/libsemanage/src/utilities.c b/libsemanage/src/utilities.c +index 349a4be..a340fc8 100644 +--- a/libsemanage/src/utilities.c ++++ b/libsemanage/src/utilities.c +@@ -140,6 +140,10 @@ int semanage_list_push(semanage_list_t ** list, char *data) + + if (!data) + return EINVAL; ++ ++ if (semanage_list_find(*list, data) != NULL) ++ return 0; ++ + if (!(temp = malloc(sizeof(semanage_list_t)))) + return ENOMEM; + diff --git a/libsemanage/tests/Makefile b/libsemanage/tests/Makefile index f92455c..ad1869b 100644 --- a/libsemanage/tests/Makefile diff --git a/libsemanage.spec b/libsemanage.spec index cbf3ded..eb37bd2 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -10,7 +10,7 @@ Summary: SELinux binary policy manipulation library Name: libsemanage Version: 2.1.10 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: libsemanage-%{version}.tgz @@ -181,6 +181,8 @@ rm -rf ${RPM_BUILD_ROOT} %endif # if with_python3 %changelog +* Mon Apr 22 2013 Dan Walsh - 2.1.10-4 +- * Thu Apr 11 2013 Dan Walsh - 2.1.10-3 - Fix test suite to build