Blame SOURCES/0002-libsemanage-add-missing-include-to-boolean_record.c.patch

e2ef9d
From 5bf29afd8591d93aa6052254855b2ff5c9b38ec6 Mon Sep 17 00:00:00 2001
e2ef9d
From: Ondrej Mosnacek <omosnace@redhat.com>
e2ef9d
Date: Thu, 3 Feb 2022 17:53:22 +0100
e2ef9d
Subject: [PATCH] libsemanage: add missing include to boolean_record.c
e2ef9d
e2ef9d
It uses asprintf(3), but doesn't directly include <stdio.h> - fix it.
e2ef9d
e2ef9d
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
e2ef9d
Acked-by: James Carter <jwcart2@gmail.com>
e2ef9d
---
e2ef9d
 libsemanage/src/boolean_record.c | 4 +++-
e2ef9d
 1 file changed, 3 insertions(+), 1 deletion(-)
e2ef9d
e2ef9d
diff --git a/libsemanage/src/boolean_record.c b/libsemanage/src/boolean_record.c
e2ef9d
index 95f3a8620ead..40dc6545fbdb 100644
e2ef9d
--- a/libsemanage/src/boolean_record.c
e2ef9d
+++ b/libsemanage/src/boolean_record.c
e2ef9d
@@ -7,6 +7,9 @@
e2ef9d
  */
e2ef9d
 
e2ef9d
 #include <string.h>
e2ef9d
+#include <stdio.h>
e2ef9d
+#include <stdlib.h>
e2ef9d
+
e2ef9d
 #include <sepol/boolean_record.h>
e2ef9d
 
e2ef9d
 typedef sepol_bool_t semanage_bool_t;
e2ef9d
@@ -20,7 +23,6 @@ typedef semanage_bool_key_t record_key_t;
e2ef9d
 #include "boolean_internal.h"
e2ef9d
 #include "handle.h"
e2ef9d
 #include "database.h"
e2ef9d
-#include <stdlib.h>
e2ef9d
 #include <selinux/selinux.h>
e2ef9d
 
e2ef9d
 /* Key */
e2ef9d
-- 
e2ef9d
2.34.1
e2ef9d