On 2017-11-14 14:22, [ext] Andreas J. Reichel wrote:
> From: Andreas Reichel <[email protected]>
> 
> Currently, all user variables set by the tool are ASCII
> strings. To be able to print them, the correct data type
> needs to be stored.
> 
> Signed-off-by: Andreas Reichel <[email protected]>
> ---
>  tools/bg_setenv.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/bg_setenv.c b/tools/bg_setenv.c
> index 746d474..ca126b8 100644
> --- a/tools/bg_setenv.c
> +++ b/tools/bg_setenv.c
> @@ -212,7 +212,8 @@ static error_t set_uservars(char *arg)
>       if (value == NULL) {
>               return journal_add_action(ENV_TASK_DEL, key, 0, NULL, 0);
>       }
> -     return journal_add_action(ENV_TASK_SET, key, USERVAR_TYPE_DEFAULT,
> +     return journal_add_action(ENV_TASK_SET, key, USERVAR_TYPE_DEFAULT |
> +                               USERVAR_TYPE_STRING_ASCII,
>                                 (uint8_t *)value, strlen(value) + 1);
>  }
>  
> 

Thanks, applied.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/ac3994b0-7fca-b290-fe32-ffdec40fa6bc%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to