1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00
freebsd/contrib/mtree
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
..
compare.c
crc.c
create.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
excludes.c
extern.h
getid.c
Makefile
misc.c
mtree.8 mtree(8): add xref to mtree(5) 2020-08-22 20:52:02 +00:00
mtree.c
mtree.h
only.c mtree -O: Fix not descending on hash collisions 2019-09-12 20:46:46 +00:00
spec.c Use type-independent formats for printing nlink_t and ino_t. 2017-01-06 16:59:33 +00:00
specspec.c mtree: Fix -f -f not considering type changes. 2019-09-12 18:44:48 +00:00
verify.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00