[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] compare problems with truncated filenames
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] compare problems with truncated filenames |
Date: |
Tue, 02 May 2006 21:40:41 EEST |
"Dr. Jürgen Vollmer" <address@hidden> wrote:
> /usr/local/bin/tar:
> lvm-snapshot/snapshots/joergli/hourly.0/joergli/lvm-snapshot/vollmer/ba/wi.wu-wien.ac.at/wi-folien/kap_01/pdf/kap01_pdf.zip:
>
> file name too long to be stored in a GNU multivolume header, truncated
Yes, it used to be fatal error, but was changed to warning some time
ago.
> /usr/local/bin/tar:
> `lvm-snapshot/snapshots/joergli/hourly.0/joergli/lvm-snapshot/vollmer/ba/wi.wu-wien.ac.at/wi-folien/kap_01/pdf/kap01_pdf.zip'
>
> is not continued on this volume
[...]
> What can be done?
Please try this patch:
Index: src/buffer.c
===================================================================
RCS file: /cvsroot/tar/tar/src/buffer.c,v
retrieving revision 1.98
diff -p -u -r1.98 buffer.c
--- src/buffer.c 2 May 2006 16:32:40 -0000 1.98
+++ src/buffer.c 2 May 2006 18:35:49 -0000
@@ -1151,9 +1151,16 @@ 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 (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;
Regards,
Sergey