mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: additional flag check on write
gbe_write already checks this, but we should also check inside the caller. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -295,7 +295,7 @@ main(int argc, char *argv[])
|
||||
|
||||
if (errno)
|
||||
err(errno, "Unhandled error: will not write file: %s", fname);
|
||||
else
|
||||
else if (gbe_flags != O_RDONLY)
|
||||
write_gbe_file();
|
||||
|
||||
if (close(gbe_fd) == -1)
|
||||
|
||||
Reference in New Issue
Block a user