* tar.c (tar_read_header): Skip over records containing

incremental tar specific info.
This commit is contained in:
Andrew V. Samoilov 2004-12-01 08:43:25 +00:00
parent badf915e39
commit 65f99d5493
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-01 Pavel Tsekov <ptsekov@gmx.net>
* tar.c (tar_read_header): Skip over records containing
incremental tar specific info.
2004-11-29 Jindrich Novy <jnovy@redhat.com> 2004-11-29 Jindrich Novy <jnovy@redhat.com>
* direntry.c (vfs_s_readlink): Correctly calculate link length. * direntry.c (vfs_s_readlink): Correctly calculate link length.

View File

@ -403,6 +403,13 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive,
else else
*h_size = tar_from_oct (1 + 12, header->header.size); *h_size = tar_from_oct (1 + 12, header->header.size);
/*
* Skip over directory snapshot info records that
* are stored in incremental tar archives.
*/
if (header->header.linkflag == LF_DUMPDIR)
return STATUS_SUCCESS;
header->header.arch_name[NAMSIZ - 1] = '\0'; header->header.arch_name[NAMSIZ - 1] = '\0';
if (header->header.linkflag == LF_LONGNAME if (header->header.linkflag == LF_LONGNAME
|| header->header.linkflag == LF_LONGLINK) { || header->header.linkflag == LF_LONGLINK) {