Optionally warn about missing zero blocks at the end of the archive
commita65f01ac35beba07525fba70dc5d3212f1a73e46
authorSergey Poznyakoff <gray@gnu.org>
Thu, 29 Dec 2022 14:34:45 +0000 (29 16:34 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 29 Dec 2022 15:42:04 +0000 (29 17:42 +0200)
tree42c98ee35e5a265d264c643602efab2ffde0f0e8
parent2cde05fa103d892d48b09cb399e7597071722086
Optionally warn about missing zero blocks at the end of the archive

(In response to savannah bug #63574)

* doc/intern.texi: Document actual tar behaviour in regard to
missing end-of-file marker.
* doc/tar.texi: Rewrite the "warnings" section.  Document
--warning=missing-zero-blocks
* src/common.h (WARN_MISSING_ZERO_BLOCKS): New constant.
(WARN_ALL): Include all warning bits.
* src/list.c (read_and): If EOF is reached without seeing end-of-file
blocks and the "missing-zero-blocks" warning is requested, warn about
the fact.
* src/warning.c: New warnings: "missing-zero-blocks", "verbose".
(warning_option): Change definition to reflect changes in common.h
doc/intern.texi
doc/tar.texi
src/common.h
src/list.c
src/warning.c