opnsense-src/usr.sbin/efivar
Eric van Gyzen 6887791e18 efivar: handle error when reading --fromfile
The result of read() was stored in an unsigned variable, so the
test for a negative value would never work.

While I'm here, print a better error message for an empty file,
omitting the misleading errno message.

Reported by:	Coverity
MFC after:	1 week
Sponsored by:	Dell EMC Isilon

(cherry picked from commit d0f4e583bf)
2022-03-02 15:56:31 -06:00
..
efiutil.c Tweak output of the loader variable 2020-09-25 18:20:41 +00:00
efiutil.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
efivar.8 efivar: Add --quiet to not report errors 2022-03-02 15:56:31 -06:00
efivar.c efivar: handle error when reading --fromfile 2022-03-02 15:56:31 -06:00
Makefile pkgbase: Remove libefivar package and add a efi-tools one 2022-01-05 18:23:50 +01:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00