opnsense-src/bin/cat
Kyle Evans 86b4df97d0 cat: report copy_file_range() errors with the read filename
The error may be due to an error while writing, but it's more helpful to
report what we were trying to from rather than "stdout" for these
errors.  Noticed because of what happens now when `cat` gets an EISDIR
for reading from a dirfd:

kevans@ifrit:~$ cat /etc
cat: stdout: Is a directory

which, after this change, becomes:

kevans@aarch64-dev:~$ cat /etc
cat: /etc: Is a directory

Reviewed by:	allanjude, des, mm
Differential Revision:	https://reviews.freebsd.org/D41784
2024-12-13 22:32:54 -06:00
..
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
cat.1 cat: Use present tense 2023-12-26 16:53:40 -07:00
cat.c cat: report copy_file_range() errors with the read filename 2024-12-13 22:32:54 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00