opnsense-src/usr.bin/gzip
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 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
gzexe
gzexe.1
gzip.1 Correct documentation year. 2019-01-07 08:29:27 +00:00
gzip.c fts_read: Handle error from a NULL return better. 2020-12-08 23:38:26 +00:00
Makefile Create links for xzdiff. 2017-12-05 07:01:10 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
unbzip2.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
unlz.c Remove unneeded checks for prelen. 2020-03-14 05:57:22 +00:00
unpack.c Remove unneeded checks for prelen. 2020-03-14 05:57:22 +00:00
unxz.c Port NetBSD improvements: 2019-01-07 08:27:11 +00:00
zdiff Diff reduction against NetBSD. The most notable change is to zdiff(1) to 2011-05-23 09:02:44 +00:00
zdiff.1 Diff reduction against NetBSD. The most notable change is to zdiff(1) to 2011-05-23 09:02:44 +00:00
zforce
zforce.1
zmore Sync with NetBSD. 2014-10-23 01:22:29 +00:00
zmore.1 Sync with NetBSD. 2014-10-23 01:22:29 +00:00
znew Reflect the fact that we actually have NetBSD revision 1.3. 2008-06-30 23:53:15 +00:00
znew.1
zuncompress.c Set errno to EFTYPE instead of EINVAL to be more consistent with the 2017-11-25 09:03:38 +00:00