freebsd-src/usr.bin/bintrans
Dag-Erling Smørgrav fa778f0ce5 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

(cherry picked from commit 5cb28f7979)

bintrans: Fix uninitialized variable.

`prev` may be used uninitialized if `body` starts with a newline.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D43534

(cherry picked from commit bce34cba07)

bintrans: Add base64 to name list in manual page.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	0mp, pstef
Differential Revision:	https://reviews.freebsd.org/D43558

(cherry picked from commit 64028ac3ba)

bintrans: Remove unused variable.

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

(cherry picked from commit bc2913d173)
2024-02-24 13:12:49 +01:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
bintrans.1 bintrans: Error out if writing to the output failed. 2024-02-24 13:12:49 +01:00
bintrans.c
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
qp.c bintrans: Error out if writing to the output failed. 2024-02-24 13:12:49 +01:00
uudecode.c bintrans: Error out if writing to the output failed. 2024-02-24 13:12:49 +01:00
uuencode.c bintrans: Error out if writing to the output failed. 2024-02-24 13:12:49 +01:00
uuencode.format.5 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00