freebsd-dev/usr.sbin/chown
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
..
tests Revert part of r322770 in usr.sbin/chown/tests/chown_test.sh, 2017-08-22 17:23:29 +00:00
chgrp.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
chown.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
chown.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00