mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* tar.c (tar_read_header): Skip over records containing
incremental tar specific info.
This commit is contained in:
parent
badf915e39
commit
65f99d5493
@ -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.
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user