freebsd-skq/usr.sbin/fmtree
Bryan Drewery 2dfa4b66b3 fts_read: Handle error from a NULL return better.
This is addressing cases such as fts_read(3) encountering an [EIO]
from fchdir(2) when FTS_NOCHDIR is not set.  That would otherwise be
seen as a successful traversal in some of these cases while silently
discarding expected work.

As noted in r264201, fts_read() does not set errno to 0 on a successful
EOF so it needs to be set before calling it.  Otherwise we might see
a random error from one of the iterations.

gzip is ignoring most errors and could be improved separately.

Reviewed by:	vangyzen
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D27184
2020-12-08 23:38:26 +00:00
..
test
compare.c Avoid collisions with function names in openssl headers. 2020-09-04 04:31:56 +00:00
create.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
excludes.c
extern.h
Makefile Avoid collisions with function names in openssl headers. 2020-09-04 04:31:56 +00:00
Makefile.depend
misc.c
mtree.8
mtree.c
mtree.h
spec.c Rename usr.sbin/mtree to usr.sbin/fmtree since it is not what /usr/sbin/mtree 2015-11-09 23:19:36 +00:00
specspec.c
verify.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00