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

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