Ticket #2201: file name length limit in tar archive
The problem: extracting deep files from an archive containing long directory/file names, filenames are cut off at 100 characters (length of the whole path inside the archive). In general, the TarVFS is scheduled for total reimplementation. But this fix is useful for stable releases. Thanks AVFS (avf.sf.net) for the code of this fix. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
bf3dafba01
Коммит
90d019a499
@ -645,7 +645,12 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, int tard, si
|
||||
}
|
||||
|
||||
if (current_file_name == NULL)
|
||||
current_file_name = g_strndup (header->header.arch_name, NAMSIZ);
|
||||
{
|
||||
if (next_long_name != NULL)
|
||||
current_file_name = g_strdup (next_long_name);
|
||||
else
|
||||
current_file_name = g_strndup (header->header.arch_name, NAMSIZ);
|
||||
}
|
||||
|
||||
canonicalize_pathname (current_file_name);
|
||||
len = strlen (current_file_name);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user