mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: use separate st variable for urandom
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user