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
@ -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…
x
Reference in New Issue
Block a user