mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Check return value for set_bootvar and give a good error message.
CID: 1383601 Sponsored by: Netflix
This commit is contained in:
parent
25b86f88e3
commit
c66805a5d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326800
|
@ -835,7 +835,8 @@ handle_timeout(int to)
|
|||
uint16_t timeout;
|
||||
|
||||
le16enc(&timeout, to);
|
||||
set_bootvar("Timeout", (uint8_t *)&timeout, sizeof(timeout));
|
||||
if (set_bootvar("Timeout", (uint8_t *)&timeout, sizeof(timeout)) < 0)
|
||||
errx(1, "Can't set Timeout for booting.");
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue