freebsd-src/usr.bin/xinstall
Dag-Erling Smørgrav 000a533e6d install: Assorted nitpickery.
* Use `errc()` instead of manually setting `errno` before calling `err()`.
* Change one warning into a fatal error.
* Drop some unnecessary casts.
* `strlcat()` bounds checks were off-by-one.  This does not matter in
  practice because the subsequent code renders an overrun harmless.
* We were passing `SSIZE_MAX` to `copy_file_range()` instead of the
  requested size.  This only matters if we're asked to install a file
  which is still being written to while we are copying it.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D44810
2024-04-17 04:03:31 +02:00
..
tests install: Simplify path construction. 2024-04-12 19:31:35 +02:00
install.1 install: Remove the mmap(2) option. 2024-04-17 04:03:31 +02:00
Makefile usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
xinstall.c install: Assorted nitpickery. 2024-04-17 04:03:31 +02:00