summaryrefslogtreecommitdiff
path: root/futility/file_type_bios.h
diff options
context:
space:
mode:
authorEvan Benn <evanbenn@chromium.org>2022-12-01 17:42:23 +1100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-11 12:00:44 +0000
commit601a164a534d80952cf81d68597a1a1fac0da65a (patch)
tree0800d3a9d19fb877f4f1d4bd6693fb92b14d2343 /futility/file_type_bios.h
parent33e13362b17e39507a815c4a57153eed657085bb (diff)
downloadvboot-601a164a534d80952cf81d68597a1a1fac0da65a.tar.gz
futility: Store errno before printing strerror
errno was being printed and then errno was returned from the function. This can be incorrect if the print function changes errno. Instead store errno, print and return the same value. BUG=b:260531154 BRANCH=None TEST=FEATURES=test emerge-grunt vboot_reference TEST=futility gbb -s --flags 0x0 /tmp/bios /tmp/bios2 Change-Id: I5016ac31e56c4a0f16f89a2a52087ba64833d28a Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4075306 Commit-Queue: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Diffstat (limited to 'futility/file_type_bios.h')
0 files changed, 0 insertions, 0 deletions