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, Oct 13, 4:54 AM
Unknown Object (File)
Sat, Oct 4, 3:52 PM
Unknown Object (File)
Sun, Sep 21, 11:00 PM
Unknown Object (File)
Sep 7 2025, 8:32 PM
Unknown Object (File)
Aug 26 2025, 6:55 AM
Unknown Object (File)
Aug 24 2025, 1:19 AM
Unknown Object (File)
Aug 20 2025, 10:05 PM
Unknown Object (File)
Aug 18 2025, 3:43 PM
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