Page MenuHomeFreeBSD

efibootmgr: Use returned error code for error message, not errno
ClosedPublic

Authored by freqlabs on Oct 19 2020, 5:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 24, 10:23 AM
Unknown Object (File)
Mon, Aug 10, 10:17 AM
Unknown Object (File)
Fri, Aug 7, 9:14 PM
Unknown Object (File)
Fri, Aug 7, 2:24 AM
Unknown Object (File)
Thu, Aug 6, 2:54 PM
Unknown Object (File)
Thu, Aug 6, 12:33 PM
Unknown Object (File)
Wed, Aug 5, 7:31 AM
Unknown Object (File)
Jul 30 2026, 10:54 AM
Subscribers
None

Details

Summary

efivar_unix_path_to_device_path returns the error code, it does not set errno.

Test Plan

Before:

โžœ  ~ sudo efibootmgr -a -c -l /mnt/EFI/freebsd/loader.efi -L nvme0-FreeBSD
efibootmgr: Cannot translate unix loader path '\mnt\EFI\freebsd\loader.efi' to UEFI: No error: 0

After:

โžœ  ~ sudo efibootmgr -a -c -l /mnt/EFI/freebsd/loader.efi -L nvme0-FreeBSD
efibootmgr: Cannot translate unix loader path '\mnt\EFI\freebsd\loader.efi' to UEFI: No such file or directory

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable