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

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