Re: [PATCH] semodule: Fix lang_ext column index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Carter <jwcart2@xxxxxxxxx> writes:

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

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




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux