HomeFreeBSD

bintrans: Error out if writing to the output failed.

Description

bintrans: Error out if writing to the output failed.

  • Cover all code paths.
  • When decoding, check all output files, not just the last one.
  • A simple ferror() check is not enough as an error may later occur while flushing whatever remains in the output buffer.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D43532

Details

Provenance
desAuthored on Feb 1 2024, 1:10 PM
Reviewer
allanjude
Differential Revision
D43532: bintrans: Error out if writing to the output failed.
Parents
rG0f4e8037332f: kbdmap: fix typo preventing kbdmap to work under vt
Branches
Unknown
Tags
Unknown