mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 05:00:08 +02:00
libreboot-utils: much stricter close() handling
remove close_warn and close_no_err make close_on_eintr a void, and abort on error instead of returning -1. a failed file closure is a world-ending event. burn accordingly. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -169,7 +169,7 @@ retry_rand:
|
||||
|
||||
#if defined(USE_URANDOM) && \
|
||||
((USE_URANDOM) > 0)
|
||||
close_no_err(&fd);
|
||||
close_on_eintr(&fd);
|
||||
#endif
|
||||
goto out;
|
||||
#endif
|
||||
@@ -179,7 +179,7 @@ out:
|
||||
err:
|
||||
#if defined(USE_URANDOM) && \
|
||||
((USE_URANDOM) > 0)
|
||||
close_no_err(&fd);
|
||||
close_on_eintr(&fd);
|
||||
#endif
|
||||
err_exit(ECANCELED,
|
||||
"Randomisation failure, possibly unsupported in your kernel");
|
||||
|
||||
Reference in New Issue
Block a user