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); } -- 2.15.0 -- 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/20171114132241.2161-5-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
