All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] semodule: Fix lang_ext column index
@ 2021-11-16 15:11 Petr Lautrbach
  2021-11-18 21:18 ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2021-11-16 15:11 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

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(-)

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] semodule: Fix lang_ext column index
  2021-11-16 15:11 [PATCH] semodule: Fix lang_ext column index Petr Lautrbach
@ 2021-11-18 21:18 ` James Carter
  2021-11-23  9:44   ` Petr Lautrbach
  0 siblings, 1 reply; 3+ messages in thread
From: James Carter @ 2021-11-18 21:18 UTC (permalink / raw)
  To: Petr Lautrbach; +Cc: SElinux list

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] semodule: Fix lang_ext column index
  2021-11-18 21:18 ` James Carter
@ 2021-11-23  9:44   ` Petr Lautrbach
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Lautrbach @ 2021-11-23  9:44 UTC (permalink / raw)
  To: SElinux list, James Carter

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
>>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-23  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-16 15:11 [PATCH] semodule: Fix lang_ext column index Petr Lautrbach
2021-11-18 21:18 ` James Carter
2021-11-23  9:44   ` Petr Lautrbach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.