diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-24 04:43:52 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-24 04:43:52 +0000 |
| commit | 616099edade1d43893564177cbd31ff5f1c7eea0 (patch) | |
| tree | b671f2cc16df8dc4d0f3e78589935c7e9a3deaf1 /util/libreboot-utils/nvmutil.c | |
| parent | 61ee661b886508d158702f9925af02464e227c3a (diff) | |
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/nvmutil.c')
| -rw-r--r-- | util/libreboot-utils/nvmutil.c | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |
