]> Dogcows Code - chaz/tar/commitdiff
(try_new_volume): Bugfix. Always check
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Nov 2005 12:58:43 +0000 (12:58 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Nov 2005 12:58:43 +0000 (12:58 +0000)
continued_file_name. If it is absent, the volume is out
of sync.
(add_multi_volume_header): Create GNU.volume.filename keyword in
the extended header.

src/buffer.c

index 367a93a0796d75c9561646560f5b7deaf50a46ae..f5ebfb7eb5ebb1e571aaad8bddc615f0ab6c8ebf 100644 (file)
@@ -1028,7 +1028,7 @@ try_new_volume ()
   size_t status;
   enum read_header rc;
   union block *block;
-  
+
   switch (subcommand_option)
     {
     case APPEND_SUBCOMMAND:
@@ -1099,8 +1099,8 @@ try_new_volume ()
   if (real_s_name)
     {
       uintmax_t s;
-      if (continued_file_name 
-         && strcmp (continued_file_name, real_s_name))
+      if (!continued_file_name 
+         || strcmp (continued_file_name, real_s_name))
        {
          WARN ((0, 0, _("%s is not continued on this volume"),
                 quote (real_s_name)));
@@ -1269,6 +1269,7 @@ add_multi_volume_header (void)
   if (archive_format == POSIX_FORMAT)
     {
       off_t d = real_s_totsize - real_s_sizeleft;
+      xheader_store ("GNU.volume.filename", NULL, real_s_name);
       xheader_store ("GNU.volume.size", NULL, &real_s_sizeleft);
       xheader_store ("GNU.volume.offset", NULL, &d);
     }
This page took 0.028638 seconds and 4 git commands to generate.