Blame SOURCES/0008-Fix-output-to-match-policy-lines.patch

25bb7d
From 2f89d9acc12c0a7b50a94e4247b015242ce712c9 Mon Sep 17 00:00:00 2001
25bb7d
From: Dan Walsh <dwalsh@redhat.com>
25bb7d
Date: Wed, 21 Sep 2011 15:15:02 -0400
25bb7d
Subject: [PATCH 8/8] Fix output to match policy lines
25bb7d
25bb7d
---
25bb7d
 libapol/src/ftrule-query.c |    4 ++--
25bb7d
 1 files changed, 2 insertions(+), 2 deletions(-)
25bb7d
25bb7d
diff --git a/libapol/src/ftrule-query.c b/libapol/src/ftrule-query.c
25bb7d
index 9c7a23b..1d5f5c8 100644
25bb7d
--- a/libapol/src/ftrule-query.c
25bb7d
+++ b/libapol/src/ftrule-query.c
25bb7d
@@ -282,7 +282,7 @@ char *apol_filename_trans_render(const apol_policy_t * policy, const qpol_filena
25bb7d
 		error = errno;
25bb7d
 		goto err;
25bb7d
 	}
25bb7d
-	if (apol_str_appendf(&tmp, &tmp_sz, "transition_type %s ", tmp_name)) {
25bb7d
+	if (apol_str_appendf(&tmp, &tmp_sz, "type_transition %s ", tmp_name)) {
25bb7d
 		error = errno;
25bb7d
 		ERR(policy, "%s", strerror(error));
25bb7d
 		goto err;
25bb7d
@@ -338,7 +338,7 @@ char *apol_filename_trans_render(const apol_policy_t * policy, const qpol_filena
25bb7d
 		goto err;
25bb7d
 	}
25bb7d
 
25bb7d
-	if (apol_str_appendf(&tmp, &tmp_sz, " %s", tmp_name)) {
25bb7d
+	if (apol_str_appendf(&tmp, &tmp_sz, " \"%s\"", tmp_name)) {
25bb7d
 		error = errno;
25bb7d
 		ERR(policy, "%s", strerror(error));
25bb7d
 		goto err;
25bb7d
-- 
25bb7d
1.7.6.2
25bb7d