diff mbox series

semodule: Fix lang_ext column index

Message ID 20211116151122.172831-1-plautrba@redhat.com (mailing list archive)
State Accepted
Headers show
Series semodule: Fix lang_ext column index | expand

Commit Message

Petr Lautrbach Nov. 16, 2021, 3:11 p.m. UTC
lang_ext is 3. column - index number 2.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 policycoreutils/semodule/semodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Carter Nov. 18, 2021, 9:18 p.m. UTC | #1
On Tue, Nov 16, 2021 at 10:12 AM Petr Lautrbach <plautrba@redhat.com> wrote:
>
> lang_ext is 3. column - index number 2.
>
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>

Acked-by: James Carter <jwcart2@gmail.com>

> ---
>  policycoreutils/semodule/semodule.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
> index ddbf10455abf..57f005ce2c62 100644
> --- a/policycoreutils/semodule/semodule.c
> +++ b/policycoreutils/semodule/semodule.c
> @@ -684,7 +684,7 @@ cleanup_extract:
>                                                 if (result != 0) goto cleanup_list;
>
>                                                 size = strlen(tmp);
> -                                               if (size > column[3]) column[3] = size;
> +                                               if (size > column[2]) column[2] = size;
>                                         }
>
>                                         /* print out each module */
> --
> 2.33.1
>
Petr Lautrbach Nov. 23, 2021, 9:44 a.m. UTC | #2
James Carter <jwcart2@gmail.com> writes:

> On Tue, Nov 16, 2021 at 10:12 AM Petr Lautrbach <plautrba@redhat.com> wrote:
>>
>> lang_ext is 3. column - index number 2.
>>
>> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
>
> Acked-by: James Carter <jwcart2@gmail.com>

Thanks.

It's merged now.


>
>> ---
>>  policycoreutils/semodule/semodule.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
>> index ddbf10455abf..57f005ce2c62 100644
>> --- a/policycoreutils/semodule/semodule.c
>> +++ b/policycoreutils/semodule/semodule.c
>> @@ -684,7 +684,7 @@ cleanup_extract:
>>                                                 if (result != 0) goto cleanup_list;
>>
>>                                                 size = strlen(tmp);
>> -                                               if (size > column[3]) column[3] = size;
>> +                                               if (size > column[2]) column[2] = size;
>>                                         }
>>
>>                                         /* print out each module */
>> --
>> 2.33.1
>>
diff mbox series

Patch

diff --git a/policycoreutils/semodule/semodule.c b/policycoreutils/semodule/semodule.c
index ddbf10455abf..57f005ce2c62 100644
--- a/policycoreutils/semodule/semodule.c
+++ b/policycoreutils/semodule/semodule.c
@@ -684,7 +684,7 @@  cleanup_extract:
 						if (result != 0) goto cleanup_list;
 
 						size = strlen(tmp);
-						if (size > column[3]) column[3] = size;
+						if (size > column[2]) column[2] = size;
 					}
 
 					/* print out each module */