aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/efibootmgr/efibootmgr.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix error in determining the next available boot slot.Warner Losh2018-01-121-1/+1
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=327877
* There's no need / benefit from deleting the variable before we set it.Warner Losh2018-01-061-1/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=327611
* Fix usage strings. -d and -p were removed before this was committed toWarner Losh2018-01-061-3/+3
| | | | | | | | | FreeBSD, but the strings weren't updated. Sponsored by: Netflix Notes: svn path=/head/; revision=327610
* Free options before setting them. This will prevent us from leakingWarner Losh2018-01-051-0/+5
| | | | | | | | | | memory when we have multiple copies of the same option from being specified. Sponsored by: Netflix Notes: svn path=/head/; revision=327573
* Ensure that we have a description string. When unspecified, default to "".Warner Losh2018-01-051-9/+6
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=327572
* Remove write-only opt and useless optlen variables.Alexander Kabaev2017-12-241-8/+5
| | | | | | | | | | This squashes the warning gebnerated by GCC 6.x. Since variables that are now removed had come documentation value, put relevant bits in comment, so they can be resurrected from there when actually needed. Notes: svn path=/head/; revision=327163
* Actually insert the free(d) call missed in r326802.Warner Losh2017-12-121-0/+1
| | | | | | | Noticed by: rpokala@ Notes: svn path=/head/; revision=326806
* Add sanity testing against maximum sane lengths for device paths forWarner Losh2017-12-121-0/+6
| | | | | | | | | | loader and kernel. CID: 1383608 Sponsored by: Netflix Notes: svn path=/head/; revision=326804
* Free load_opt_buf after we're done with it.Warner Losh2017-12-121-1/+2
| | | | | | | | CID: 1383607 Sponsored by: Netflix Notes: svn path=/head/; revision=326803
* Fix resource leak. Free converted description after printing it.Warner Losh2017-12-121-3/+4
| | | | | | | | | | Also minor style sort of local vars. CID: 1383606 Sponsored by: Netflix Notes: svn path=/head/; revision=326802
* Don't leak new_data.Warner Losh2017-12-121-0/+1
| | | | | | | | CID: 1383605 Sponsored by: Netflix Notes: svn path=/head/; revision=326801
* Check return value for set_bootvar and give a good error message.Warner Losh2017-12-121-1/+2
| | | | | | | | CID: 1383601 Sponsored by: Netflix Notes: svn path=/head/; revision=326800
* Unbreak gcc build by using (void) for functions that take no args.Warner Losh2017-12-111-3/+3
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=326771
* Indent multiple device path entries correctly.Warner Losh2017-12-091-2/+5
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=326728
* Remove vestiges of -d and -p commands.Warner Losh2017-12-091-12/+9
| | | | | | | | | Fix two core dumps when optional data isn't specified. Sponsored by: Netflix Notes: svn path=/head/; revision=326727
* Forgotten in 326725Warner Losh2017-12-091-1/+1
| | | | | | | Release Notes: Yes Notes: svn path=/head/; revision=326726
* Import Netflix's efibootmgr to help manage UEFI boot variablesWarner Losh2017-12-091-0/+874
efibootmgr manages the UEFI BootXXXX variables that implement the UEFI Boot Manager protocol defined in the UEFI standards. It is modeled after the Linux program of the same name with a mostly compatible set of command line options. Since there's a fair amount of OS specifioc code due to differeing names and methods of doing things, the compatibility isn't 100%. Basic functionality is implemented, though the more advanced next boot functionality that's been defined elsewhere is unimplemented. Submitted by: Matt Williams (with unix / efi path xlate by me) Sponsored by: Netflix Notes: svn path=/head/; revision=326725