mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
|
||
|---|---|---|
| .. | ||
| efiutil.c | ||
| efiutil.h | ||
| efivar.8 | ||
| efivar.c | ||
| Makefile | ||
| Makefile.depend | ||