[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH 4/5] Make the multi-volume extracting more verbose
From: |
Pavel Raiskup |
Subject: |
[Bug-tar] [PATCH 4/5] Make the multi-volume extracting more verbose |
Date: |
Fri, 2 Nov 2012 14:45:44 +0100 |
Previously, if user specified as the second or subsequent multivolume part
bad file of size *smaller* than tar header size, tar did not complained
anything about this mistake and asked for the same volume again.
---
src/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/buffer.c b/src/buffer.c
index 6789907..39c61a2 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1371,7 +1371,7 @@ try_new_volume (void)
header = find_next_block ();
if (!header)
- return false;
+ RETURN_BAD_ARCHIVE;
switch (header->header.typeflag)
{
--
1.7.11.7