Commit Graph

8 Commits

Author SHA1 Message Date
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
Pedro F. Giffuni
1de7b4b805 various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
2017-11-27 15:37:16 +00:00
Xin LI
9d21c94eb0 Constify return value of stripath and avoid unnecessary deconst
casts.
2008-11-19 00:09:01 +00:00
Robert Drehmel
fadcf8aec0 - Align the function prototype of the external `crc' function with
how `crc' is actually defined.
Data type corrections:
 - Define variables which contain file byte offset values as type
   off_t as required by the `crc' function.
 - Change the type of a variable carrying a CRC checksum from `u_long'
   to `uint32_t'.
 - Parse the length of a file with sscanf as `intmax_t'
   (as there is no conversion specifier for `off_t').
Style(9):
 - Put an empty line between #include directives for system and user
   header files.
2003-03-13 23:34:18 +00:00
Philippe Charnier
7f69f4fdb0 match prototype 2000-05-28 14:57:49 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Philippe Charnier
55c5024e9c Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
Jordan K. Hubbard
dcf118f17c ckdist - a handy utility for verifying the sanity of a distribution.
This will probably need to go away again someday when distributions get
folded into packages and there are no more dist files to check, but knowing
how long we've been waiting on THAT, this will be a welcome tool for the
interim.
Submitted by:	Robert Nordier <rnordier@iafrica.com>
1997-01-21 12:58:53 +00:00