diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 15:10:38 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 15:10:38 +0000 |
| commit | 08de8d98e90ce25e2e525cd8462ab420d82b26dc (patch) | |
| tree | df348687a942a593151ccb28981fd5ac60c31180 | |
| parent | b5054f68bae37facdc839c7f616939736847f3cc (diff) | |
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>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 9d2c50c9..7095246a 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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) |
