]> git.pld-linux.org Git - packages/tar.git/commitdiff
- [FIX] non-recoverable error (lone zero block) on certain archives.
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 8 Sep 2004 16:56:27 +0000 (16:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (stolen from debian).
- release 2.

Changed files:
    tar-zero-block.patch -> 1.1
    tar.spec -> 1.85

tar-zero-block.patch [new file with mode: 0644]
tar.spec

diff --git a/tar-zero-block.patch b/tar-zero-block.patch
new file mode 100644 (file)
index 0000000..df48e66
--- /dev/null
@@ -0,0 +1,25 @@
+--- tar-1.14/src/list.c.orig   2004-05-10 13:49:09.000000000 +0200
++++ tar-1.14/src/list.c        2004-09-08 18:48:34.473169312 +0200
+@@ -138,6 +138,14 @@
+         if (!ignore_zeros_option)
+           {
++              break;
++
++      /*
++       * According to POSIX tar specs, this is wrong, but on the web
++       * there are some tar specs that can trigger this, and some tar
++       * implementations create tars according to that spec...
++       *
++
+             char buf[UINTMAX_STRSIZE_BOUND];
+             status = read_header (false);
+@@ -146,6 +154,7 @@
+             WARN ((0, 0, _("A lone zero block at %s"),
+                    STRINGIFY_BIGINT (current_block_ordinal (), buf)));
+             break;
++       */
+           }
+         status = prev_status;
+         continue;
index 6b688b518dc197ee5a1ecbe2c1c45d4b20cedd03..1c4f3a8192df71b2aca23433a99332173a1833e9 100644 (file)
--- a/tar.spec
+++ b/tar.spec
@@ -7,7 +7,7 @@ Summary(pt_BR): GNU Tape Archiver (tar)
 Summary(tr):   Yaygýn kullanýlan yedekleyici
 Name:          tar
 Version:       1.14
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL
 Group:         Applications/Archiving
@@ -21,6 +21,7 @@ Patch2:               %{name}-info.patch
 Patch3:                %{name}-pl.po-update.patch
 Patch4:                %{name}-sock.patch
 Patch5:                %{name}-dots.patch
+Patch6:                %{name}-zero-block.patch
 URL:           http://www.gnu.org/software/tar/tar.html
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake >= 1.8
@@ -128,6 +129,7 @@ s
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 rm -f po/stamp-po
 
This page took 0.090762 seconds and 4 git commands to generate.