|
|
b96032 |
From 60d08c6d82f0c33a6704c79afd416902eb8c663f Mon Sep 17 00:00:00 2001
|
|
|
b96032 |
From: rpm-build <rpm-build>
|
|
|
b96032 |
Date: Mon, 28 Jul 2014 08:08:50 +0200
|
|
|
b96032 |
Subject: [PATCH 1/9] Stop issuing lone zero block warnings (downstram)
|
|
|
b96032 |
|
|
|
b96032 |
Resolves: #135601
|
|
|
b96032 |
|
|
|
b96032 |
---
|
|
|
b96032 |
src/list.c | 11 +++++++++++
|
|
|
b96032 |
1 file changed, 11 insertions(+)
|
|
|
b96032 |
|
|
|
b96032 |
diff --git a/src/list.c b/src/list.c
|
|
|
b96032 |
index b4277e0..0c7a740 100644
|
|
|
b96032 |
--- a/src/list.c
|
|
|
b96032 |
+++ b/src/list.c
|
|
|
b96032 |
@@ -240,6 +240,14 @@ read_and (void (*do_something) (void))
|
|
|
b96032 |
|
|
|
b96032 |
if (!ignore_zeros_option)
|
|
|
b96032 |
{
|
|
|
b96032 |
+ /*
|
|
|
b96032 |
+ * According to POSIX tar specs, this is wrong, but on the web
|
|
|
b96032 |
+ * there are some tar specs that can trigger this, and some tar
|
|
|
b96032 |
+ * implementations create tars according to that spec. For now,
|
|
|
b96032 |
+ * let's not be pedantic about issuing the warning.
|
|
|
b96032 |
+ */
|
|
|
b96032 |
+#if 0
|
|
|
b96032 |
+
|
|
|
b96032 |
char buf[UINTMAX_STRSIZE_BOUND];
|
|
|
b96032 |
|
|
|
b96032 |
status = read_header (¤t_header, ¤t_stat_info,
|
|
|
b96032 |
@@ -249,6 +257,9 @@ read_and (void (*do_something) (void))
|
|
|
b96032 |
WARNOPT (WARN_ALONE_ZERO_BLOCK,
|
|
|
b96032 |
(0, 0, _("A lone zero block at %s"),
|
|
|
b96032 |
STRINGIFY_BIGINT (current_block_ordinal (), buf)));
|
|
|
b96032 |
+#endif
|
|
|
b96032 |
+ status = read_header (¤t_header, ¤t_stat_info,
|
|
|
b96032 |
+ read_header_auto);
|
|
|
b96032 |
break;
|
|
|
b96032 |
}
|
|
|
b96032 |
status = prev_status;
|
|
|
b96032 |
--
|
|
|
b96032 |
1.9.3
|
|
|
b96032 |
|