freebsd-skq/usr.sbin/efibootmgr
Mitchell Horne 2e085395e1 efibootmgr: fix an incorrect error handling check
efivar_device_path_to_unix_path() returns standard error codes on
failure and zero on success. Checking for a return value less than zero
means that the actual failure cases won't be handled. This could
manifest as a segfault during the subsequent call to printf().

Reviewed by:	imp
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D27424
2020-11-30 22:16:11 +00:00
..
efibootmgr.8 efibootmgr: Add option to request booting to the firmware user interface 2020-08-26 02:05:58 +00:00
efibootmgr.c efibootmgr: fix an incorrect error handling check 2020-11-30 22:16:11 +00:00
Makefile