From 616099edade1d43893564177cbd31ff5f1c7eea0 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 04:43:52 +0000 Subject: util/nvmutil: make it compile again i was reorganising the state machine (singleton) used for data, and part of what i wanted lead to mkhtemp being written. Signed-off-by: Leah Rowe --- util/libreboot-utils/nvmutil.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'util/libreboot-utils/nvmutil.c') diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c index cb08ec43..fa6384b0 100644 --- a/util/libreboot-utils/nvmutil.c +++ b/util/libreboot-utils/nvmutil.c @@ -62,6 +62,11 @@ main(int argc, char *argv[]) if (x == NULL) err_no_cleanup(ECANCELED, "NULL state on init"); + /* parse user command */ +/* TODO: CHECK ACCESSES VIA xstatus() */ + set_cmd(argc, argv); + set_cmd_args(argc, argv); + cmd = &x->cmd[x->i]; f = &x->f; @@ -96,6 +101,9 @@ main(int argc, char *argv[]) if (cmd->run == NULL) err(errno, "Command not set"); + + sanitize_command_list(); + open_gbe_file(); copy_gbe(); -- cgit v1.2.1