]> git.wh0rd.org - dump.git/commitdiff
Fix restore -P with compressed dumps.
authorStelian Pop <stelian@popies.net>
Thu, 5 May 2011 16:05:40 +0000 (16:05 +0000)
committerStelian Pop <stelian@popies.net>
Thu, 5 May 2011 16:05:40 +0000 (16:05 +0000)
CHANGES
restore/tape.c

diff --git a/CHANGES b/CHANGES
index 2f8cdc6ce642836a80cf471c2969eba8a4cd5166..78d1a88fc708f3ca1f0fc78996f4100bcd67809f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,4 @@
-$Id: CHANGES,v 1.320 2011/02/21 10:36:47 stelian Exp $
+$Id: CHANGES,v 1.321 2011/05/05 16:05:40 stelian Exp $
 
 
 Changes between versions 0.4b43 and 0.4b44 (released ?????????????)
@@ -18,6 +18,10 @@ Changes between versions 0.4b43 and 0.4b44 (released ?????????????)
        was introduced in 0.4b42 while adding ext4 support.
        (Sourceforge bug #3133762).
 
+4.     Fix a bug in restore -P where useless index files for compressed
+       dumps were created (Debian bug #583093). Thanks to
+       Mark Wooding <mdw@distorted.org.uk> for the patch.
+
 Changes between versions 0.4b42 and 0.4b43 (released June 11, 2010)
 ===================================================================
 
index 4710f889d1cdae269f1c3c586eb594cdc401c650..bd411b945bf298467144dee8d1a297d160ee102c 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.100 2010/12/06 14:26:51 stelian Exp $";
+       "$Id: tape.c,v 1.101 2011/05/05 16:05:40 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -2143,6 +2143,10 @@ readtape_comprfile(char *buf)
                ((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0;
        numtrec = ntrec;
        tpb = (struct tapebuf *) tapebuf;
+#ifdef USE_QFA
+       if (createtapeposflag)
+               (void)GetTapePos(&curtapepos);
+#endif
 
        /* read the block prefix */
        ret = read_a_block(mt, tapebuf, PREFIXSIZE, &rl);
@@ -2232,6 +2236,10 @@ readtape_comprtape(char *buf)
                ((struct s_spcl *)&tapebuf[i * TP_BSIZE])->c_magic = 0;
        numtrec = ntrec;
        tpb = (struct tapebuf *) tapebuf;
+#ifdef USE_QFA
+       if (createtapeposflag)
+               (void)GetTapePos(&curtapepos);
+#endif
 
        /* read the block */
        size = bufsize + PREFIXSIZE;