mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: directly compare fd/urandom_fd
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -945,7 +945,7 @@ read_gbe_file_exact(int fd, void *buf, size_t len,
|
||||
}
|
||||
|
||||
if (rval != -1) {
|
||||
if (path == oldrandom || path == newrandom) {
|
||||
if (fd == urandom_fd) {
|
||||
/*
|
||||
* /dev/[u]random reads can still return
|
||||
* partial reads legally, on some weird
|
||||
|
||||
Reference in New Issue
Block a user