X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fbuffer.c;h=06b6901a58efc23f0b4dae90ed3729cd152e3f07;hb=729b91adb1607a329be9b886b425874c04f38fbd;hp=a6daf3c9b3ae61774c52e09a61f913b211d09b9b;hpb=18486cf8d7c2bd54e51fe86016ef0be95320ded2;p=chaz%2Ftar diff --git a/src/buffer.c b/src/buffer.c index a6daf3c..06b6901 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -453,7 +453,7 @@ _open_archive (enum access_mode wanted_access) archive = STDIN_FILENO; - type = check_compressed_archive (archive); + type = check_compressed_archive (); if (type != ct_none) FATAL_ERROR ((0, 0, _("Archive is compressed. Use %s option"), @@ -1151,9 +1151,19 @@ try_new_volume () 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))); - return false; + if ((archive_format == GNU_FORMAT || archive_format == OLDGNU_FORMAT) + && strlen (real_s_name) >= NAME_FIELD_SIZE + && strncmp (continued_file_name, real_s_name, + NAME_FIELD_SIZE) == 0) + WARN ((0, 0, + _("%s is possibly continued on this volume: header contains truncated name"), + quote (real_s_name))); + else + { + WARN ((0, 0, _("%s is not continued on this volume"), + quote (real_s_name))); + return false; + } } s = continued_file_size + continued_file_offset;