(short_read): Issue a warning on short reads.

This commit is contained in:
uid65697
2003-12-25 10:18:14 +00:00
parent bb0b5c01c9
commit 278a8945a6

View File

@@ -623,8 +623,15 @@ short_read (ssize_t status)
archive_read_error ();
if (status == 0)
break;
{
char buf[UINTMAX_STRSIZE_BOUND];
WARN((0, 0, _("Read %s bytes from %s"),
STRINGIFY_BIGINT (record_size - left, buf),
*archive_name_cursor));
break;
}
if (! read_full_records_option)
{
unsigned long rest = record_size - left;