]> git.ipfire.org Git - thirdparty/tar.git/commit
Use full-read instead of safe-read
authorSergey Poznyakoff <gray@gnu.org>
Sat, 15 Jul 2023 15:06:27 +0000 (18:06 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Mon, 17 Jul 2023 14:07:12 +0000 (17:07 +0300)
commite7a5e124455fd4d15193cdea360819d12fdbeeb5
tree7c6dda9805afe751f7019c12acac37900f1b00a2
parent31f68bbe2a54841d997409b890fcfffa8aaab119
Use full-read instead of safe-read

This helps handle archiving on certain filesystems where read()
returns less bytes than requested when reading from a regular
file.

References:

  https://savannah.gnu.org/bugs/index.php?64426
  https://lists.gnu.org/archive/html/bug-tar/2021-07/msg00001.html

* gnulib.modules: Add full-read.
* src/common.h: Include full-read.h
* src/misc.c: Use full_read.
* src/sparse.c: Likewise.
* src/update.c: Likewise.
gnulib.modules
src/common.h
src/misc.c
src/sparse.c
src/update.c