diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 04:13:21 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 04:13:21 +0000 |
| commit | c64324467f412f5c9abf89ee22fbf6796f556273 (patch) | |
| tree | 832dd66f2bd9558e71e9b0c043e4125d59ad5545 /util/nvmutil/nvmutil.c | |
| parent | 1c10eb524fefdc0afdd2501ca6f0df9e8a775882 (diff) | |
util/nvmutil: use separate st variable for urandom
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 36b29af2..87a20bd0 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -142,11 +142,12 @@ void openFiles(void) { struct stat st; + struct stat st_rfd; checkdir("/dev/urandom"); checkdir(fname); - xopen(&rfd, "/dev/urandom", O_RDONLY, &st); + xopen(&rfd, "/dev/urandom", O_RDONLY, &st_rfd); xopen(&fd, fname, flags, &st); switch(st.st_size) { |
