summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2006-09-11 23:48:19 +0000
committerChris PeBenito <pebenito@gentoo.org>2006-09-11 23:48:19 +0000
commit1ecb71e641f515dc245e8269a90683f4ab808d23 (patch)
tree8f2ff0acf68c8bbe1dadf55483686ea711068ef8 /app-admin/setools/files
parentVersion bump. (diff)
downloadhistorical-1ecb71e641f515dc245e8269a90683f4ab808d23.tar.gz
historical-1ecb71e641f515dc245e8269a90683f4ab808d23.tar.bz2
historical-1ecb71e641f515dc245e8269a90683f4ab808d23.zip
Fixes to hopefully take care of #133028
Package-Manager: portage-2.1.1
Diffstat (limited to 'app-admin/setools/files')
-rw-r--r--app-admin/setools/files/apol_tcl_fc.c.diff24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-admin/setools/files/apol_tcl_fc.c.diff b/app-admin/setools/files/apol_tcl_fc.c.diff
new file mode 100644
index 000000000000..a8543746ab95
--- /dev/null
+++ b/app-admin/setools/files/apol_tcl_fc.c.diff
@@ -0,0 +1,24 @@
+diff -ur a/libapol/apol_tcl_fc.c b/libapol/apol_tcl_fc.c
+--- a/libapol/apol_tcl_fc.c 2006-04-11 17:27:18.000000000 -0300
++++ b/libapol/apol_tcl_fc.c 2006-05-12 17:11:07.000000000 -0300
+@@ -178,16 +178,16 @@
+ */
+ static int Apol_Search_FC_Index_DB(ClientData clientData, Tcl_Interp *interp, int argc, CONST char *argv[])
+ {
++#ifndef LIBSEFS
++ Tcl_SetResult(interp, "You need to build apol with libsefs to use this feature!", TCL_STATIC);
++ return TCL_ERROR;
++#else
+ sefs_search_keys_t search_keys;
+ CONST char **object_classes = NULL, **types = NULL, **users = NULL,
+ **ranges, **paths = NULL;
+ int retval = TCL_ERROR;
+ Tcl_Obj *result_obj = Tcl_NewListObj(0, NULL);
+
+-#ifndef LIBSEFS
+- Tcl_SetResult(interp, "You need to build apol with libsefs to use this feature!", TCL_STATIC);
+- return TCL_ERROR;
+-#else
+ memset(&search_keys, 0, sizeof(search_keys));
+ if (argc != 10) {
+ Tcl_SetResult(interp, "Need a list of users, list of types, list of object classes, list of ranges, list of paths, user_regex, type_regex, range_regex, and path_regex", TCL_STATIC);