Blame SOURCES/0042-semodule-Fix-lang_ext-column-index.patch

30e25f
From 14084bad4f5bcfdb769ba39c9a6f12e4787ab909 Mon Sep 17 00:00:00 2001
30e25f
From: Petr Lautrbach <plautrba@redhat.com>
30e25f
Date: Tue, 16 Nov 2021 16:11:22 +0100
30e25f
Subject: [PATCH] semodule: Fix lang_ext column index
30e25f
30e25f
lang_ext is 3. column - index number 2.
30e25f
30e25f
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
30e25f
Acked-by: James Carter <jwcart2@gmail.com>
30e25f
---
30e25f
 policycoreutils/semodule/semodule.c | 2 +-
30e25f
 1 file changed, 1 insertion(+), 1 deletion(-)
30e25f
30e25f
diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
30e25f
index 300a97d735cc..c677cc4f1d81 100644
30e25f
--- a/policycoreutils/semodule/semodule.c
30e25f
+++ b/policycoreutils/semodule/semodule.c
30e25f
@@ -682,7 +682,7 @@ cleanup_extract:
30e25f
 						if (result != 0) goto cleanup_list;
30e25f
 
30e25f
 						size = strlen(tmp);
30e25f
-						if (size > column[3]) column[3] = size;
30e25f
+						if (size > column[2]) column[2] = size;
30e25f
 					}
30e25f
 
30e25f
 					/* print out each module */
30e25f
-- 
30e25f
2.33.1
30e25f