1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/bin/setfacl
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
..
file.c setfacl: style and break main() into manageable pieces 2018-04-27 15:25:24 +00:00
Makefile
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mask.c setfacl: style and break main() into manageable pieces 2018-04-27 15:25:24 +00:00
merge.c setfacl: style and break main() into manageable pieces 2018-04-27 15:25:24 +00:00
remove.c setfacl: style and break main() into manageable pieces 2018-04-27 15:25:24 +00:00
setfacl.1 Don't set NFSv4 ACL inheritance flags on non-directories. 2018-10-26 21:17:06 +00:00
setfacl.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
setfacl.h setfacl: style and break main() into manageable pieces 2018-04-27 15:25:24 +00:00
util.c setfacl: add recursive functionality 2018-04-10 23:29:57 +00:00